Documentation ¶
Overview ¶
Package gerror defines a custom error type with a HTTP status code for goiardi. This used to be in the util package, but has been moved out into its own module. For convenience, and because the old methods are called everywhere, there are wrappers in util for the Error interface here, along with the Errorf and CastErr functions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Error ¶
Error is an error type that includes an http status code (defaults to http.BadRequest).
func StatusError ¶
StatusError makes an error with a string and a HTTP status code.
Click to show internal directories.
Click to hide internal directories.