httperror

package
v0.0.0-...-fde1fe5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 1, 2022 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Format

func Format(message string) interface{}

Format builds a formatted error message for use in gin HTTP responses.

func New

func New(status int, message string) error

New instantiates a httpError, associating a message with an HTTP status code.

func NewWithDefaultErrorMessage

func NewWithDefaultErrorMessage(status int) error

New instantiates a httpError, associating a message with an HTTP status code.

func Response

func Response(err error) (int, interface{})

Response accepts an error and returns a statuscode/message tuple for use in gin HTTP responses.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL