sushy.exceptions Module¶sushy.exceptions.AccessError(method, url, response)¶Bases: sushy.exceptions.HTTPError
sushy.exceptions.BadRequestError(method, url, response)¶Bases: sushy.exceptions.HTTPError
sushy.exceptions.ConnectionError(**kwargs)¶Bases: sushy.exceptions.SushyError
message = 'Unable to connect to %(url)s. Error: %(error)s'¶sushy.exceptions.HTTPError(method, url, response)¶Bases: sushy.exceptions.SushyError
Basic exception for HTTP errors
body = None¶Error JSON body, if present.
code = 'Base.1.0.GeneralError'¶Error code defined in the Redfish specification, if present.
detail = None¶Error message defined in the Redfish specification, if present.
message = 'HTTP %(method)s %(url)s returned code %(code)s. %(error)s'¶status_code = None¶HTTP status code.
sushy.exceptions.InvalidParameterValueError(**kwargs)¶Bases: sushy.exceptions.SushyError
message = 'The parameter "%(parameter)s" value "%(value)s" is invalid. Valid values are: %(valid_values)s'¶sushy.exceptions.MalformedAttributeError(**kwargs)¶Bases: sushy.exceptions.SushyError
message = 'The attribute %(attribute)s is malformed in the resource %(resource)s: %(error)s'¶sushy.exceptions.MissingActionError(**kwargs)¶Bases: sushy.exceptions.SushyError
message = 'The action %(action)s is missing from the resource %(resource)s'¶sushy.exceptions.MissingAttributeError(**kwargs)¶Bases: sushy.exceptions.SushyError
message = 'The attribute %(attribute)s is missing from the resource %(resource)s'¶sushy.exceptions.MissingXAuthToken(method, url, response)¶Bases: sushy.exceptions.HTTPError
message = 'No X-Auth-Token returned from remote host when attempting to establish a session. Error: %(error)s'¶sushy.exceptions.ResourceNotFoundError(method, url, response)¶Bases: sushy.exceptions.HTTPError
message = 'Resource %(url)s not found'¶sushy.exceptions.ServerSideError(method, url, response)¶Bases: sushy.exceptions.HTTPError
sushy.exceptions.SushyError(**kwargs)¶Bases: exceptions.Exception
Basic exception for errors raised by Sushy
message = None¶sushy.exceptions.raise_for_response(method, url, response)¶Raise a correct error class, if needed.
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.