ErrorResponse¶
- class oci.generative_ai_sandbox.models.ErrorResponse(**kwargs)¶
Bases:
objectError information.
Methods:
__init__(**kwargs)Initializes a new ErrorResponse object with values from keyword arguments.
Attributes:
[Required] Gets the code of this ErrorResponse.
[Required] Gets the message of this ErrorResponse.
- __init__(**kwargs)¶
Initializes a new ErrorResponse 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 ErrorResponse.
message (str) – The value to assign to the message property of this ErrorResponse.
- property code¶
[Required] Gets the code of this ErrorResponse. A short error code that defines the error, meant for programmatic parsing.
- Returns
The code of this ErrorResponse.
- Return type
str
- property message¶
[Required] Gets the message of this ErrorResponse. A human-readable error message.
- Returns
The message of this ErrorResponse.
- Return type
str