errors

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2020 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(e error) string

func Wrap

func Wrap(e error) error

Wrap an error e if it is not nil

func WrapS

func WrapS(e 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