ApiError

class oci.os_management.models.ApiError(**kwargs)

Bases: object

Error Information

Methods

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

Attributes

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

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

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

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

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

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