Files

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)
}