The sushy.exceptions
Module¶
-
exception
sushy.exceptions.
AccessError
(method, url, response)¶ Bases:
sushy.exceptions.HTTPError
-
exception
sushy.exceptions.
ArchiveParsingError
(**kwargs)¶ Bases:
sushy.exceptions.SushyError
-
message
= 'Failed parsing archive "%(path)s": %(error)s'¶
-
-
exception
sushy.exceptions.
BadRequestError
(method, url, response)¶ Bases:
sushy.exceptions.HTTPError
-
exception
sushy.exceptions.
ConnectionError
(**kwargs)¶ Bases:
sushy.exceptions.SushyError
-
message
= 'Unable to connect to %(url)s. Error: %(error)s'¶
-
-
exception
sushy.exceptions.
ExtensionError
(**kwargs)¶ Bases:
sushy.exceptions.SushyError
-
message
= 'Sushy Extension Error: %(error)s'¶
-
-
exception
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.
-
-
exception
sushy.exceptions.
InvalidParameterValueError
(**kwargs)¶ Bases:
sushy.exceptions.SushyError
-
message
= 'The parameter "%(parameter)s" value "%(value)s" is invalid. Valid values are: %(valid_values)s'¶
-
-
exception
sushy.exceptions.
MalformedAttributeError
(**kwargs)¶ Bases:
sushy.exceptions.SushyError
-
message
= 'The attribute %(attribute)s is malformed in the resource %(resource)s: %(error)s'¶
-
-
exception
sushy.exceptions.
MissingActionError
(**kwargs)¶ Bases:
sushy.exceptions.SushyError
-
message
= 'The action %(action)s is missing from the resource %(resource)s'¶
-
-
exception
sushy.exceptions.
MissingAttributeError
(**kwargs)¶ Bases:
sushy.exceptions.SushyError
-
message
= 'The attribute %(attribute)s is missing from the resource %(resource)s'¶
-
-
exception
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'¶
-
-
exception
sushy.exceptions.
OEMExtensionNotFoundError
(**kwargs)¶ Bases:
sushy.exceptions.SushyError
-
message
= 'No %(resource)s OEM extension found by name "%(name)s".'¶
-
-
exception
sushy.exceptions.
ResourceNotFoundError
(method, url, response)¶ Bases:
sushy.exceptions.HTTPError
-
message
= 'Resource %(url)s not found'¶
-
-
exception
sushy.exceptions.
ServerSideError
(method, url, response)¶ Bases:
sushy.exceptions.HTTPError
-
exception
sushy.exceptions.
SushyError
(**kwargs)¶ Bases:
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.