blob: e1fb1a0ed71ba1f43688c3a44c43d3be3d3392f7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
"""Authorisation exceptions"""
class AuthorisationError(Exception):
"""
Top-level exception for the `gn3.auth.authorisation` package.
All exceptions in this package should inherit from this class.
"""
error_code: int = 500
class UserRegistrationError(AuthorisationError):
"""Raised whenever a user registration fails"""
class NotFoundError(AuthorisationError):
"""Raised whenever we try fetching (a/an) object(s) that do(es) not exist."""
error_code: int = 404
|