summaryrefslogtreecommitdiff
path: root/src/ampache/exceptions.py
diff options
context:
space:
mode:
authorHombreLaser <sebastian-440@live.com>2022-05-14 14:39:45 -0500
committerHombreLaser <sebastian-440@live.com>2022-05-14 14:39:45 -0500
commit74b01c4942e38afce9efdf60fa46ab573f4f6f86 (patch)
tree54f788021b8933c15b4b79fbc3200130343062cb /src/ampache/exceptions.py
Commit inicial
Diffstat (limited to 'src/ampache/exceptions.py')
-rw-r--r--src/ampache/exceptions.py20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/ampache/exceptions.py b/src/ampache/exceptions.py
new file mode 100644
index 0000000..345d8e2
--- /dev/null
+++ b/src/ampache/exceptions.py
@@ -0,0 +1,20 @@
+class AccessException(Exception):
+ """
+ Happens when the API is not enabled. Error code: 4700-
+ """
+ pass
+
+
+class AuthenticationException(Exception):
+ """
+ Happens in faulty authentication or when the session expires.
+ Error code: 4701.
+ """
+ pass
+
+
+class AccessDeniedException(Exception):
+ """
+ Happens when the request method is not enabled. Error code: 4703
+ """
+ pass