diff options
Diffstat (limited to 'gn3/oauth2/errors.py')
-rw-r--r-- | gn3/oauth2/errors.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gn3/oauth2/errors.py b/gn3/oauth2/errors.py new file mode 100644 index 0000000..f8cfd2c --- /dev/null +++ b/gn3/oauth2/errors.py @@ -0,0 +1,8 @@ +"""List of possible errors.""" + +class AuthorisationError(Exception): + """Top-level error class dealing with generic authorisation errors.""" + + +class TokenValidationError(AuthorisationError): + """Class to indicate that token validation failed.""" |