diff options
| author | 2019-11-18 12:06:59 +0000 | |
|---|---|---|
| committer | 2019-11-18 12:06:59 +0000 | |
| commit | 9c4902dcfe2d016b71435ff4be348ea76a1cd7cf (patch) | |
| tree | 2f1c8fd44be3758558c7b56b9672d95c299df1c6 /src/utils/errors.py | |
| parent | v1.15.0-rc1 release (diff) | |
| signature | ||
"EventsResultsError"->"EventResultsError", move errors to utils.error
Diffstat (limited to 'src/utils/errors.py')
| -rw-r--r-- | src/utils/errors.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/utils/errors.py b/src/utils/errors.py new file mode 100644 index 00000000..7b7720c6 --- /dev/null +++ b/src/utils/errors.py @@ -0,0 +1,12 @@ +class EventError(Exception): + pass +class EventResultsError(EventError): + def __init__(self): + EventError.__init__(self, "Failed to load results") +class EventNotEnoughArgsError(EventError): + def __init__(self, n): + EventError.__init__(self, "Not enough arguments (minimum %d)" % n) +class EventUsageError(EventError): + def __init__(self, usage): + EventError.__init__(self, "Not enough arguments, usage: %s" % usage) + |
