errors

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrBadRequest = NewWithCode("bad_request")
)

Functions

func Is

func Is(err error, target error) bool

func New

func New(message string) error

func NewWithCode

func NewWithCode(code string) error

func NewWithCodef

func NewWithCodef(code string, format string, args ...interface{}) error

func NewWithErr

func NewWithErr(code string, err error) error

func Original

func Original(err error) *baseError

func Wrap

func Wrap(err error, message string) error

func Wrapf

func Wrapf(err error, format string, args ...interface{}) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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