aboutsummaryrefslogtreecommitdiff
path: root/gn3
diff options
context:
space:
mode:
Diffstat (limited to 'gn3')
-rw-r--r--gn3/auth/authentication/exceptions.py4
-rw-r--r--gn3/auth/authorisation/exceptions.py8
2 files changed, 12 insertions, 0 deletions
diff --git a/gn3/auth/authentication/exceptions.py b/gn3/auth/authentication/exceptions.py
new file mode 100644
index 0000000..c31e691
--- /dev/null
+++ b/gn3/auth/authentication/exceptions.py
@@ -0,0 +1,4 @@
+"""Exceptions for authentication"""
+
+class AuthenticationError(Exception):
+ """Base exception class for `gn3.auth.authentication` package."""
diff --git a/gn3/auth/authorisation/exceptions.py b/gn3/auth/authorisation/exceptions.py
new file mode 100644
index 0000000..16fc9bb
--- /dev/null
+++ b/gn3/auth/authorisation/exceptions.py
@@ -0,0 +1,8 @@
+"""Authorisation exceptions"""
+
+class AuthorisationError(Exception):
+ """
+ Top-level exception for the `gn3.auth.authorisation` package.
+
+ All exceptions in this package should inherit from this class.
+ """