Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateErrorResponseFromError ¶
CreateErrorResponseFromError creates an ErrorResponse from a generic error.
Types ¶
type ErrorResponse ¶
type ErrorResponse struct { Code ErrorCode `json:"code"` Details string `json:"details,omitempty"` }
ErrorResponse represents an error response structure.
func (*ErrorResponse) Error ¶
func (e *ErrorResponse) Error() string
Error implements the error interface for ErrorResponse.
Click to show internal directories.
Click to hide internal directories.