errs

package
v0.0.0-...-e225f37 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeferWrapf

func DeferWrapf(errOut *error, msgFmtS string, args ...any)

DeferWrapf wraps an error using `Wrapf` and should be called in a defer at the beginning of a function

func ErrStr deprecated

func ErrStr(s string) error

Deprecated: use `fmt.Errorf` instead

func FilterError

func FilterError(err error, exceptIsErrs ...error) func(exceptAsErrs ...any) error

second argument list should be pointers to types that implement error

func IgnoreErrors

func IgnoreErrors(err error, exceptIsAsErrs ...any) error

func Wrapf

func Wrapf(err error, msgFmtS string, args ...any) error

Wrapf returns nil if `err` == nil or `err` wrapped with `msgFmtS` and `args`. if `msgFmtS` does not contain '%w' it will be added at the end and `err` will be appended to `args`

Types

This section is empty.

Jump to

Keyboard shortcuts

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