aboutsummaryrefslogtreecommitdiff
path: root/src/utils/errors.py
blob: 7b7720c62c85f504b63e6adcf6e5d30c0cb209ff (about) (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
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)