utility

package
v0.0.0-...-d412edc Latest Latest
Warning

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

Go to latest
Published: May 15, 2022 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 HTTPError

type HTTPError struct {
	// contains filtered or unexported fields
}

func BadRequest

func BadRequest(message string, cause error) *HTTPError

func Conflict

func Conflict(message string, cause error) *HTTPError

func InternalServerError

func InternalServerError(message string, cause error) *HTTPError

func NewHTTPError

func NewHTTPError(errCode int, message string, cause error) *HTTPError

func NotFound

func NotFound(message string, cause error) *HTTPError

func (*HTTPError) ErrCode

func (e *HTTPError) ErrCode() int

func (*HTTPError) Error

func (e *HTTPError) Error() string

func (*HTTPError) Unwrap

func (e *HTTPError) Unwrap() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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