aboutsummaryrefslogtreecommitdiff
path: root/gn3/auth/authorisation/errors.py
diff options
context:
space:
mode:
Diffstat (limited to 'gn3/auth/authorisation/errors.py')
-rw-r--r--gn3/auth/authorisation/errors.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/gn3/auth/authorisation/errors.py b/gn3/auth/authorisation/errors.py
index 2116ead..ff28cd4 100644
--- a/gn3/auth/authorisation/errors.py
+++ b/gn3/auth/authorisation/errors.py
@@ -26,3 +26,13 @@ class InconsistencyError(AuthorisationError):
Exception raised due to data inconsistencies
"""
error_code: int = 500
+
+class PasswordError(AuthorisationError):
+ """
+ Raise in case of an error with passwords.
+ """
+
+class UsernameError(AuthorisationError):
+ """
+ Raise in case of an error with a user's name.
+ """