mirror of
https://github.com/subutux/rmapy.git
synced 2025-12-10 07:25:34 +00:00
initial commit
This commit is contained in:
18
rmapi/exceptions.py
Normal file
18
rmapi/exceptions.py
Normal file
@@ -0,0 +1,18 @@
|
||||
class AuthError(Exception):
|
||||
"""Authentication error"""
|
||||
def __init__(self, msg):
|
||||
super(AuthError, self).__init__(msg)
|
||||
|
||||
|
||||
class DocumentNotFound(Exception):
|
||||
"""Could not found a requested document"""
|
||||
def __init__(self, msg):
|
||||
super(DocumentNotFound, self).__init__(msg)
|
||||
|
||||
|
||||
class ApiError(Exception):
|
||||
"""Could not found a requested document"""
|
||||
def __init__(self, msg, response=None):
|
||||
self.response = response
|
||||
super(ApiError, self).__init__(msg)
|
||||
|
||||
Reference in New Issue
Block a user