ErrorDetail Model
ErrorDetail Model documentation for Go SDK
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| Code | int32 | Numeric error code (typically an HTTP or gRPC-derived status code) | |
| Message | string | Human-readable error message |
Methods
NewErrorDetail
func NewErrorDetail(code int32, message string, ) *ErrorDetail
NewErrorDetail instantiates a new ErrorDetail 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
NewErrorDetailWithDefaults
func NewErrorDetailWithDefaults() *ErrorDetail
NewErrorDetailWithDefaults instantiates a new ErrorDetail 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 *ErrorDetail) GetCode() int32
GetCode returns the Code field if non-nil, zero value otherwise.
GetCodeOk
func (o *ErrorDetail) GetCodeOk() (*int32, 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 *ErrorDetail) SetCode(v int32)
SetCode sets Code field to given value.
GetMessage
func (o *ErrorDetail) GetMessage() string
GetMessage returns the Message field if non-nil, zero value otherwise.
GetMessageOk
func (o *ErrorDetail) 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 *ErrorDetail) SetMessage(v string)
SetMessage sets Message field to given value.