Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ShowStatusCodeInHTTPError ¶
func ShowStatusCodeInHTTPError(value bool)
ShowStatusCodeInError enables showing status code package wide. Status code is shown in error message only if it's set
Types ¶
type ErrorWithMetadata ¶
type ErrorWithMetadata interface { error fmt.Stringer ErrorValue() string Metadata() interface{} SetError(string) ErrorWithMetadata SetMetadata(interface{}) ErrorWithMetadata }
func NewErrorWithMetadata ¶
func NewErrorWithMetadata() ErrorWithMetadata
type HTTPError ¶
HTTPError interface gives error and status code
func HTTPErrorf ¶
Errorf returns a HTTPError with status code 500, format, and arguments
func HTTPErrorfWithStatusCode ¶
ErrorfWithStatusCode returns a HTTPError with status code, format, and arguments
Click to show internal directories.
Click to hide internal directories.