summaryrefslogtreecommitdiff
path: root/src/ampache/exceptions.py
diff options
context:
space:
mode:
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