httperr

package
v0.0.0-...-d05f80c Latest Latest
Warning

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

Go to latest
Published: May 22, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Error

type Error struct {
	Message    string
	StatusCode int
	Err        error
}

func New

func New(statusCode int, format string, a ...interface{}) *Error

func Wrap

func Wrap(err error, statusCode int, format string, a ...interface{}) *Error

func (Error) Error

func (e Error) Error() string

func (Error) Wrap

func (e Error) Wrap(err error) *Error

Jump to

Keyboard shortcuts

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