gferr

package
v0.0.0-...-2cadf5c Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Recovery

func Recovery()

Types

type IError

type IError interface {
	error
	fmt.Stringer
	Code() int
	Msg() string
	Wrap(err error) IError
	Equal(err error) bool
}

func New

func New(code int, msg string, errs ...error) IError

func NewTimeout

func NewTimeout(code int, msg string, errs ...error) IError

type MultiError

type MultiError []error

func (MultiError) Error

func (e MultiError) Error() string

func (MultiError) Unwrap

func (e MultiError) Unwrap() error

type Timeout

type Timeout struct{ IError }

func (Timeout) Temporary

func (Timeout) Temporary() bool

func (Timeout) Timeout

func (Timeout) Timeout() bool

Jump to

Keyboard shortcuts

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