errors

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2022 License: Unlicense Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrGameNotFound     = errors.New("game not found")
	ErrParsingFailed    = errors.New("error while parsing")
	ErrResourceNotReady = errors.New("resource not ready")
	ErrHTTP             = errors.New("http error")
	ErrIllegalPath      = errors.New("illegal file path")
	ErrGameUnavailable  = errors.New("game not avalable or server is down")
	ErrType             = errors.New("invalid error")
)

Functions

func As added in v1.3.1

func As(err error, target *error) bool

func Is added in v1.3.1

func Is(err, target error) bool

func New added in v1.3.1

func New[S ~string](text S) error

func Unwrap added in v1.3.1

func Unwrap(err error) error

func Wrap added in v1.3.1

func Wrap(err error, info string, a ...any) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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