WorkRequestError¶
-
class
oci.disaster_recovery.models.
WorkRequestError
(**kwargs)¶ Bases:
object
An error associcated with a work request.
Methods
__init__
(**kwargs)Initializes a new WorkRequestError object with values from keyword arguments. Attributes
code
[Required] Gets the code of this WorkRequestError. message
[Required] Gets the message of this WorkRequestError. timestamp
[Required] Gets the timestamp of this WorkRequestError. -
__init__
(**kwargs)¶ Initializes a new WorkRequestError object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
Parameters: - code (str) – The value to assign to the code property of this WorkRequestError.
- message (str) – The value to assign to the message property of this WorkRequestError.
- timestamp (datetime) – The value to assign to the timestamp property of this WorkRequestError.
-
code
¶ [Required] Gets the code of this WorkRequestError. A machine-usable code for the error that occured. Error codes are listed here – (https://docs.cloud.oracle.com/Content/API/References/apierrors.htm).
Example: 429
Returns: The code of this WorkRequestError. Return type: str
-
message
¶ [Required] Gets the message of this WorkRequestError. A human-readable description of the issue encountered.
Example: TooManyRequests
Returns: The message of this WorkRequestError. Return type: str
-
timestamp
¶ [Required] Gets the timestamp of this WorkRequestError. The time the error occured. An RFC3339 formatted datetime string.
Example: 2019-03-29T09:36:42Z
Returns: The timestamp of this WorkRequestError. Return type: datetime
-