Files
rmapy/rmapi/exceptions.py
2019-09-20 15:28:26 +02:00

31 lines
813 B
Python

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 UnsupportedTypeError(Exception):
"""Not the expected type"""
def __init__(self, msg):
super(UnsupportedTypeError, self).__init__(msg)
class FolderNotFound(Exception):
"""Could not found a requested folder"""
def __init__(self, msg):
super(FolderNotFound, 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)