initial commit

This commit is contained in:
Stijn Van Campenhout
2019-09-18 06:57:23 +02:00
commit c53c511b57
18 changed files with 1459 additions and 0 deletions

18
rmapi/exceptions.py Normal file
View 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)