goerr

package module
v2.0.2+incompatible Latest Latest
Warning

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

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

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 added in v1.0.13

func BadRequest(err error) IError

func Conflict added in v1.0.13

func Conflict(err error) IError

func Forbidden added in v1.0.13

func Forbidden(err error) IError

func Internal added in v1.0.13

func Internal(err error) IError

func New

func New(code int, err error) IError

func NotAcceptable added in v1.0.13

func NotAcceptable(err error) IError

func NotAllowed

func NotAllowed(err error) IError

func NotFound added in v1.0.13

func NotFound(err error) IError

func Unauthorized added in v1.0.13

func Unauthorized(err error) IError

func Unprocessable added in v1.0.13

func Unprocessable(err error) IError

Jump to

Keyboard shortcuts

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