Documentation
¶
Index ¶
- func Convert(err error, check Check) error
- 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 ErrorCodeExtractMessageFunc
- type ErrorCodeExtractMessageMetaFunc
- type ErrorCodeOption
- type HttpStatusCodeOption
- type InvalidUserInputOption
- type UserError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Check ¶
func ErrorCode ¶ added in v1.0.14
func ErrorCode(errorCode errorCode.ErrorCode, auxOptions ...ErrorCodeOption) Check
func HttpStatusCode ¶ added in v1.0.14
func HttpStatusCode(httpStatusCode int, auxOptions ...HttpStatusCodeOption) Check
func InvalidUserInput ¶ added in v1.0.14
func InvalidUserInput(parameterName string, auxOptions ...InvalidUserInputOption) Check
type ErrorCodeExtractMessageFunc ¶ added in v1.0.46
type ErrorCodeExtractMessageMetaFunc ¶ added in v1.0.46
type ErrorCodeOption ¶ added in v1.0.46
func ErrorCodeErrorMessage ¶ added in v1.0.14
func ErrorCodeErrorMessage(f ErrorCodeExtractMessageFunc) ErrorCodeOption
type HttpStatusCodeOption ¶ added in v1.0.46
func HttpStatusCodeErrorMessage ¶ added in v1.0.14
func HttpStatusCodeErrorMessage(f ErrorCodeExtractMessageFunc) HttpStatusCodeOption
type InvalidUserInputOption ¶ added in v1.0.46
func InvalidUserInputErrorMessage ¶ added in v1.0.14
func InvalidUserInputErrorMessage(f ErrorCodeExtractMessageMetaFunc) InvalidUserInputOption
type UserError ¶
type UserError struct {
// contains filtered or unexported fields
}
func AsUserError ¶
func NewUserError ¶
Click to show internal directories.
Click to hide internal directories.