Documentation ¶
Index ¶
- func ExpectOK(res *http.Response, msg string) error
- func ExpectStatus(res *http.Response, expected int, msg string) error
- func IsNotFound(err error) bool
- func NewNotFound(s string, v ...interface{}) error
- func NewValidationError(msg string, v ...interface{}) error
- func Wrap(err error, msg string, v ...interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExpectOK ¶
ExpectOK checks if the given http response has status "200 - OK" and returns an error with the given message if not.
func ExpectStatus ¶
ExpectStatus checks if the given http response has the expected status and returns an error with the given message if not.
func IsNotFound ¶
IsNotFound checks if the given error is a "not found" error.
func NewNotFound ¶
NewNotFound creates a new "not found" error.
func NewValidationError ¶
NewValidationError creates an error of from the given format string.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.