diff options
author | Frederick Muriuki Muriithi | 2024-05-30 16:13:04 -0500 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2024-06-03 10:08:23 -0500 |
commit | ffe9e7104ba83b73d78d66de2d29ad4ace6de2da (patch) | |
tree | 82dd7cf2265c11d6d0e7714b9680ab5bec92277a /gn_auth/auth/errors.py | |
parent | c462653f53858359a81cfed561f1622d7e63102b (diff) | |
download | gn-auth-ffe9e7104ba83b73d78d66de2d29ad4ace6de2da.tar.gz |
Provide endpoint for verification and do verification
Diffstat (limited to 'gn_auth/auth/errors.py')
-rw-r--r-- | gn_auth/auth/errors.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gn_auth/auth/errors.py b/gn_auth/auth/errors.py index 60d6a22..77b73aa 100644 --- a/gn_auth/auth/errors.py +++ b/gn_auth/auth/errors.py @@ -15,6 +15,9 @@ class ForbiddenAccess(AuthorisationError): class UserRegistrationError(AuthorisationError): """Raised whenever a user registration fails""" +class UserVerificationError(UserRegistrationError): + """Raised when verification of a user fails.""" + class NotFoundError(AuthorisationError): """Raised whenever we try fetching (a/an) object(s) that do(es) not exist.""" error_code: int = 404 |