errors

package
v0.3.4 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: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Is

func Is(err, target error) bool

Is reports whether any error in err's chain matches target.

func New

func New(text string) error

New returns an error that formats as the given text.

func Wrap

func Wrap(err error, wrapper error) error

Wrap an error into a wrapper. If nil passed, nil will be returned.

Types

This section is empty.

Jump to

Keyboard shortcuts

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