diff options
Diffstat (limited to 'gn3/auth/authorisation/errors.py')
-rw-r--r-- | gn3/auth/authorisation/errors.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gn3/auth/authorisation/errors.py b/gn3/auth/authorisation/errors.py new file mode 100644 index 0000000..fa2d6b7 --- /dev/null +++ b/gn3/auth/authorisation/errors.py @@ -0,0 +1,11 @@ +"""Authorisation exceptions""" + +class AuthorisationError(Exception): + """ + Top-level exception for the `gn3.auth.authorisation` package. + + All exceptions in this package should inherit from this class. + """ + +class UserRegistrationError(AuthorisationError): + """Raised whenever a user registration fails""" |