Versions in this module Expand all Collapse all v1 v1.0.0 Dec 23, 2023 Changes in this version + type Response struct + Err error + ErrorType Type + Valid bool + 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 + func (r *Response) Error() string + func (r *Response) IsUnknownError() bool + type Type string + const ApplicationError + const CriticalError + const UnknownError