Versions in this module Expand all Collapse all v0 v0.4.2 Dec 19, 2022 v0.4.1 Dec 19, 2022 Changes in this version + type ErrorIs interface + Is func(error) bool + type ErrorUnwrap interface + Unwrap func() error type ResponseError + func (responseError *ResponseError) Is(err error) bool + func (responseError *ResponseError) Unwrap() error v0.4.0 Dec 15, 2022 v0.3.1 Dec 9, 2022 v0.3.0 Dec 9, 2022 v0.2.11 Dec 9, 2022 Changes in this version + var Conflict = ResponseErrorType + var Forbidden = ResponseErrorType + var InternalServerError = ResponseErrorType + var InvalidArgument = ResponseErrorType + var NotAcceptable = ResponseErrorType + var NotFound = ResponseErrorType + var ServiceUnavailable = ResponseErrorType + var Unauthorized = ResponseErrorType + var UnexpectedInternalServerError = ResponseErrorType + type ResponseError struct + Code int + Id string + Message string + Name string + Payload any + func (responseError *ResponseError) Error() string + func (responseError *ResponseError) ResponseStatusCode() int + type ResponseErrorType struct + Code int + Name string + func (responseErrorType ResponseErrorType) Error() string + func (responseErrorType ResponseErrorType) ForceWrap(err error) error + func (responseErrorType ResponseErrorType) Is(err error) bool + func (responseErrorType ResponseErrorType) New(message ...string) error + func (responseErrorType ResponseErrorType) NewWithPayload(message string, payload any) error + func (responseErrorType ResponseErrorType) Wrap(err error) error + func (responseErrorType ResponseErrorType) WrapAndSetId(err error, id string) error