예제 #1
0
class NotFound(SdsException):
    message = _("Resource could not be found.")
    code = 404
    safe = True
예제 #2
0
class DeviceUnavailable(Invalid):
    message = _("The device in the path %(path)s is unavailable: %(reason)s")
예제 #3
0
class InvalidUUID(Invalid):
    message = _("Expected a uuid but received %(uuid)s.")
예제 #4
0
class AdminRequired(NotAuthorized):
    message = _("User does not have admin privileges")
예제 #5
0
class ServiceUnavailable(Invalid):
    message = _("Service is unavailable at this time.")
예제 #6
0
class HostBinaryNotFound(NotFound):
    message = _("Could not find binary %(binary)s on host %(host)s.")
예제 #7
0
class MalformedRequestBody(SdsException):
    message = _("Malformed message body: %(reason)s")
예제 #8
0
class InvalidContentType(Invalid):
    message = _("Invalid content type %(content_type)s.")
예제 #9
0
class InvalidHost(Invalid):
    message = _("Invalid host: %(reason)s")
예제 #10
0
class InvalidResults(Invalid):
    message = _("The results are invalid.")
예제 #11
0
class InvalidInput(Invalid):
    message = _("Invalid input received: %(reason)s")
예제 #12
0
class SfJsonEncodeFailure(SdsException):
    message = _("Failed to load data into json format")
예제 #13
0
class Invalid(SdsException):
    message = _("Unacceptable parameters.")
    code = 400
예제 #14
0
class PolicyNotAuthorized(NotAuthorized):
    message = _("Policy doesn't allow %(action)s to be performed.")
예제 #15
0
class ServiceNotFound(NotFound):
    message = _("Service %(service_id)s could not be found.")
예제 #16
0
class InvalidParameterValue(Invalid):
    message = _("%(err)s")
예제 #17
0
class HostNotFound(NotFound):
    message = _("Host %(host)s could not be found.")
예제 #18
0
class InvalidAuthKey(Invalid):
    message = _("Invalid auth key: %(reason)s")
예제 #19
0
class FileNotFound(NotFound):
    message = _("File %(file_path)s could not be found.")
예제 #20
0
class InvalidConfigurationValue(Invalid):
    message = _('Value "%(value)s" is not valid for '
                'configuration option "%(option)s"')
예제 #21
0
class ConfigNotFound(NotFound):
    message = _("Could not find config at %(path)s")
예제 #22
0
class NotAuthorized(SdsException):
    message = _("Not authorized.")
    code = 403