errors

package
v0.13.1 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddError

func AddError(errs []error, err error, strs ...string) ([]error, bool)

func AddErrors

func AddErrors(errs []error, newErrs []error, strs ...string) ([]error, bool)

func CastRecoverError

func CastRecoverError(errInterface interface{}, strs ...string) error

func Cause

func Cause(err error) error

func FirstError

func FirstError(errs ...error) error

func HasError added in v0.13.0

func HasError(errs []error) bool

func MergeErrItems

func MergeErrItems(items ...interface{}) error

func Message added in v0.13.0

func Message(err error, strs ...string) string

func New

func New(strs ...string) error

func PrintError

func PrintError(err error, strs ...string)

func PrintStacktrace

func PrintStacktrace(err error)

func WithStack added in v0.4.0

func WithStack(err error) error

func Wrap

func Wrap(err error, strs ...string) error

func WrapAll added in v0.10.0

func WrapAll(errs []error, strs ...string) []error

Types

This section is empty.

Jump to

Keyboard shortcuts

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