errors

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2024 License: MIT Imports: 3 Imported by: 56

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsType

func IsType(e1, e2 error) bool

func New

func New(m string, a ...interface{}) error

New returns a new wrapped error with m as message

func TypeName

func TypeName(err error) string

func Wrap

func Wrap(err error) error

Wrap an error e if it is not nil

func WrapS

func WrapS(err error, skip int) error

WrapS is like Wrap but skips 'skip' lines of trace

Types

This section is empty.

Jump to

Keyboard shortcuts

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