package
Version:
v0.0.0-...-fde1fe5
Opens a new window with list of versions in this module.
Published: Feb 1, 2022
License: AGPL-3.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func Format(message string) interface{}
Format builds a formatted error message for use in gin HTTP responses.
New instantiates a httpError, associating a message with an HTTP status code.
func NewWithDefaultErrorMessage(status int) error
New instantiates a httpError, associating a message with an HTTP status code.
func Response(err error) (int, interface{})
Response accepts an error and returns a statuscode/message tuple for use in gin HTTP responses.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.