Skip to content

Commit

Permalink
Add exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
keiranjprice101 committed May 29, 2024
1 parent 9e8b663 commit 9e3b9be
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/exceptions.py
Original file line number Diff line number Diff line change
@@ -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"""

0 comments on commit 9e3b9be

Please sign in to comment.