DefaultError

class oci.bds.models.DefaultError(**kwargs)

Bases: object

Error Information.

Methods:

__init__(**kwargs)

Initializes a new DefaultError object with values from keyword arguments.

Attributes:

code

[Required] Gets the code of this DefaultError.

message

[Required] Gets the message of this DefaultError.

__init__(**kwargs)

Initializes a new DefaultError 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 DefaultError.

  • message (str) – The value to assign to the message property of this DefaultError.

property code

[Required] Gets the code of this DefaultError. A short error code that defines the error, meant for programmatic parsing.

Returns

The code of this DefaultError.

Return type

str

property message

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

Returns

The message of this DefaultError.

Return type

str