예제 #1
0
class InvalidHost(Invalid):
    message = _("Invalid host: %(reason)s")
예제 #2
0
class InvalidInput(Invalid):
    message = _("Invalid input received: %(reason)s.")
예제 #3
0
class InvalidContentType(Invalid):
    message = _("Invalid content type %(content_type)s.")
예제 #4
0
class InvalidRequest(Invalid):
    message = _("The request is invalid.")
예제 #5
0
class InvalidResults(Invalid):
    message = _("The results are invalid.")
예제 #6
0
class Conflict(DolphinException):
    message = _("%(err)s")
    code = 409
예제 #7
0
class Invalid(DolphinException):
    message = _("Unacceptable parameters.")
    code = 400
예제 #8
0
class AdminRequired(NotAuthorized):
    message = _("User does not have admin privileges.")
예제 #9
0
class PolicyNotAuthorized(NotAuthorized):
    message = _("Policy doesn't allow %(action)s to be performed.")
예제 #10
0
class NotAuthorized(DolphinException):
    message = _("Not authorized.")
    code = 403
예제 #11
0
class BadConfigurationException(DolphinException):
    message = _("Bad configuration: %(reason)s.")
예제 #12
0
class NetworkBadConfigurationException(NetworkException):
    message = _("Bad network configuration: %(reason)s.")
예제 #13
0
class NetworkBindException(DolphinException):
    message = _("Exception due to failed port status in binding.")
예제 #14
0
class NetworkException(DolphinException):
    message = _("Exception due to network failure.")