mirror of
https://github.com/subutux/rmapy.git
synced 2025-12-08 22:53:25 +00:00
31 lines
813 B
Python
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)
|
|
|