ErrorResponse
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| Code | string | Stable machine-readable error code. | |
| Message | string | Human-readable error message. | |
| Details | Pointer to interface{} | Optional error details payload. | [optional] |
Methods
NewErrorResponse
func NewErrorResponse(code string, message string, ) *ErrorResponse
NewErrorResponse instantiates a new ErrorResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
NewErrorResponseWithDefaults
func NewErrorResponseWithDefaults() *ErrorResponse
NewErrorResponseWithDefaults instantiates a new ErrorResponse object This constructor will only assign default values to properties that have it defined, but it doesn’t guarantee that properties required by API are set
GetCode
func (o *ErrorResponse) GetCode() string
GetCode returns the Code field if non-nil, zero value otherwise.
GetCodeOk
func (o *ErrorResponse) GetCodeOk() (*string, bool)
GetCodeOk returns a tuple with the Code field if it’s non-nil, zero value otherwise and a boolean to check if the value has been set.
SetCode
func (o *ErrorResponse) SetCode(v string)
SetCode sets Code field to given value.
GetMessage
func (o *ErrorResponse) GetMessage() string
GetMessage returns the Message field if non-nil, zero value otherwise.
GetMessageOk
func (o *ErrorResponse) GetMessageOk() (*string, bool)
GetMessageOk returns a tuple with the Message field if it’s non-nil, zero value otherwise and a boolean to check if the value has been set.
SetMessage
func (o *ErrorResponse) SetMessage(v string)
SetMessage sets Message field to given value.
GetDetails
func (o *ErrorResponse) GetDetails() interface{}
GetDetails returns the Details field if non-nil, zero value otherwise.
GetDetailsOk
func (o *ErrorResponse) GetDetailsOk() (*interface{}, bool)
GetDetailsOk returns a tuple with the Details field if it’s non-nil, zero value otherwise and a boolean to check if the value has been set.
SetDetails
func (o *ErrorResponse) SetDetails(v interface{})
SetDetails sets Details field to given value.
HasDetails
func (o *ErrorResponse) HasDetails() bool
HasDetails returns a boolean if a field has been set.
SetDetailsNil
func (o *ErrorResponse) SetDetailsNil(b bool)
SetDetailsNil sets the value for Details to be an explicit nil
UnsetDetails
func (o *ErrorResponse) UnsetDetails()
UnsetDetails ensures that no value is present for Details, not even an explicit nil