mirror of
https://github.com/hanzo-fi/webhooks.git
synced 2026-10-30 20:32:55 +00:00
23 lines
535 B
Go
23 lines
535 B
Go
// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
|
|
package sdkerrors
|
|
|
|
import (
|
|
"encoding/json"
|
|
"github.com/hanzo-fi/webhooks/pkg/client/models/components"
|
|
)
|
|
|
|
// ErrorResponse - Error
|
|
type ErrorResponse struct {
|
|
ErrorCode components.ErrorsEnum `json:"errorCode"`
|
|
ErrorMessage string `json:"errorMessage"`
|
|
Details *string `json:"details,omitempty"`
|
|
}
|
|
|
|
var _ error = &ErrorResponse{}
|
|
|
|
func (e *ErrorResponse) Error() string {
|
|
data, _ := json.Marshal(e)
|
|
return string(data)
|
|
}
|