From 74b01c4942e38afce9efdf60fa46ab573f4f6f86 Mon Sep 17 00:00:00 2001 From: HombreLaser Date: Sat, 14 May 2022 14:39:45 -0500 Subject: Commit inicial --- src/ampache/exceptions.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 src/ampache/exceptions.py (limited to 'src/ampache/exceptions.py') 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 -- cgit v1.2.3