errs

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 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 {
	Err    error
	Status status.Status
}

Error represents http response error, which is along with http status code, it used to decide how to show error message in response.

func BadRequest

func BadRequest(err error) Error

func Forbidden

func Forbidden(err error) Error

func InternalError

func InternalError(err error) Error

func UnAuthorized

func UnAuthorized(err error) Error

func Wrap

func Wrap(err error, status status.Status) Error

func (Error) Error

func (e Error) Error() string

Jump to

Keyboard shortcuts

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