Documentation ¶
Index ¶
- type Response
- func GetErrorResponse(err error) Response
- func NewErrorResponse(errorType Type, errorMessage string) *Response
- func NewErrorResponseWithError(errorType Type, err error) *Response
- func NewErrorResponseWithErrorAndMsg(errorType Type, err error, msg string) *Response
- func NewErrorResponseWithErrorAndMsgf(errorType Type, err error, msg string, a ...any) *Response
- func NewErrorResponsef(errorType Type, msg string, a ...any) *Response
- type Type
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Response ¶
func GetErrorResponse ¶
GetErrorResponse will get the type of err, if the type is a ErrorResponse it will return that as an ErrorResponse, otherwise it will construct a new default ErrorResponse
func NewErrorResponse ¶
func (*Response) IsUnknownError ¶
Click to show internal directories.
Click to hide internal directories.