aboutsummaryrefslogtreecommitdiff
path: root/src/utils/errors.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/errors.py')
-rw-r--r--src/utils/errors.py12
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)
+