From 9e3b9be21c3c611e519e8f11da17dcd93d1ca86f Mon Sep 17 00:00:00 2001 From: Keiran Price Date: Wed, 29 May 2024 07:58:05 +0100 Subject: [PATCH] Add exceptions --- src/exceptions.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/exceptions.py diff --git a/src/exceptions.py b/src/exceptions.py new file mode 100644 index 0000000..b6f6afa --- /dev/null +++ b/src/exceptions.py @@ -0,0 +1,14 @@ +class UOWSError(Exception): + """Problem authenticating with the user office web service""" + + +class ProposalAllocationsError(Exception): + """Problem connecting with the proposal allocations api""" + + +class BadCredentialsError(Exception): + """ "Bad Credentials Provided""" + + +class BadJWTError(Exception): + """Raised when a bad jwt has been given to the service"""