From bac3865f7c0d625f2932e1c3fb001cc6a0048921 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Thu, 24 Nov 2022 13:37:27 +0300 Subject: auth: Define base exceptions * gn3/auth/authentication/exceptions.py: define `AuthenticationError` * gn3/auth/authorisation/exceptions.py: define `AuthorisationError` --- gn3/auth/authorisation/exceptions.py | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 gn3/auth/authorisation/exceptions.py (limited to 'gn3/auth/authorisation/exceptions.py') 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. + """ -- cgit v1.2.3