Documentation
¶
Index ¶
- func Convert(err error, check Check) error
- func ErrorCodeErrorMessage(f func(apiErr apiError.Error) string) errorCodeOption
- func HttpStatusCodeErrorMessage(f func(apiErr apiError.Error) string) httpStatusCodeOption
- func InvalidUserInputErrorMessage(f func(apiErr apiError.Error, metaItem map[string]interface{}) string) invalidUserInputOption
- func Is(err error, check Check) bool
- type Check
- func And(checks ...Check) Check
- func ErrorCode(errorCode errorCode.ErrorCode, auxOptions ...errorCodeOption) Check
- func HttpStatusCode(httpStatusCode int, auxOptions ...httpStatusCodeOption) Check
- func InvalidUserInput(parameterName string, auxOptions ...invalidUserInputOption) Check
- func Meta(...) Check
- func Or(checks ...Check) Check
- type UserError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ErrorCodeErrorMessage ¶ added in v1.0.14
func HttpStatusCodeErrorMessage ¶ added in v1.0.14
func InvalidUserInputErrorMessage ¶ added in v1.0.14
Types ¶
type Check ¶
func HttpStatusCode ¶ added in v1.0.14
func InvalidUserInput ¶ added in v1.0.14
type UserError ¶
type UserError struct {
// contains filtered or unexported fields
}
func AsUserError ¶
func NewUserError ¶
Click to show internal directories.
Click to hide internal directories.