Source code for pysnc.exceptions

[docs]class AuthenticationException(Exception): pass
[docs]class EvaluationException(Exception): pass
[docs]class AclQueryException(Exception): pass
[docs]class RoleException(Exception): pass
[docs]class RestException(Exception): def __init__(self, message, status_code=None): '''if isinstance(message, dict) and 'error' in message: message = message['error']['message'] self.detail = message['error']['detail'] self.status = message['error']['status']''' super(RestException, self).__init__(self, "%s - %s" % (status_code, message)) self.status_code = status_code
[docs]class InsertException(RestException): pass
[docs]class UpdateException(RestException): pass
[docs]class DeleteException(RestException): pass
[docs]class NotFoundException(Exception): pass
[docs]class RequestException(Exception): pass
[docs]class InstanceException(Exception): pass
[docs]class UploadException(Exception): pass
[docs]class NoRecordException(Exception): pass