goerr

package module
v2.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2021 License: BSD-2-Clause Imports: 1 Imported by: 4

README

goerr

error implementations

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IError

type IError interface {
	Error() string
	Code() int
	Details() []IError
	PushDetail(iError IError)
	Tag(string)
	GetTag() string
	GetError() error
}

func BadRequest

func BadRequest(err error) IError

func Conflict

func Conflict(err error) IError

func Forbidden

func Forbidden(err error) IError

func Internal

func Internal(err error) IError

func New

func New(code int, err error) IError

func NotAcceptable

func NotAcceptable(err error) IError

func NotAllowed

func NotAllowed(err error) IError

func NotFound

func NotFound(err error) IError

func Unauthorized

func Unauthorized(err error) IError

func Unprocessable

func Unprocessable(err error) IError

Jump to

Keyboard shortcuts

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