ErrorBody

class oci.oda.models.ErrorBody(**kwargs)

Bases: object

Error Information.

Methods

__init__(**kwargs) Initializes a new ErrorBody object with values from keyword arguments.

Attributes

code [Required] Gets the code of this ErrorBody.
message [Required] Gets the message of this ErrorBody.
__init__(**kwargs)

Initializes a new ErrorBody 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 ErrorBody.
  • message (str) – The value to assign to the message property of this ErrorBody.
code

[Required] Gets the code of this ErrorBody. A short error code that defines the error, which is useful for programmatic parsing.

Returns:The code of this ErrorBody.
Return type:str
message

[Required] Gets the message of this ErrorBody. A human-readable error string.

Returns:The message of this ErrorBody.
Return type:str