errors

package
v0.0.0-...-ce49ec0 Latest Latest
Warning

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

Go to latest
Published: May 12, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func As

func As(err error, target interface{}) bool

func Errorf

func Errorf(format string, a ...any) error

func ErrorfWithSkip

func ErrorfWithSkip(skip int, format string, a ...any) error

func Is

func Is(e error, original error) bool

Is detects whether the error is equal to a given error. Errors are considered equal by this function if they are matched by errors.Is or if their contained errors are matched through errors.Is

func New

func New(text string) error

func NewSentinelError

func NewSentinelError(text string) error

func Unwrap

func Unwrap(err error) error

func Wrap

func Wrap(err error) error

func WrapWithSkip

func WrapWithSkip(err error, skip int) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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