diff options
Diffstat (limited to 'exceptions.py')
| -rw-r--r-- | exceptions.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/exceptions.py b/exceptions.py new file mode 100644 index 0000000..ca68547 --- /dev/null +++ b/exceptions.py @@ -0,0 +1,14 @@ +class InvalidAmountError(ValueError): + '''Raise when some member is already registered''' + +class AlreadyRegisteredError(Exception): + '''Raise when some member is already registered''' + +class NotRegisteredError(Exception): + '''Raise when the sender is not registered''' + +class InvalidArgumentError(Exception): + '''Raise when some cmd is called with wrong arguments''' + +class NotAllowedError(Exception): + '''Raise when some member is already registered''' |
