errors

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2019 License: Apache-2.0 Imports: 5 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 Exit

func Exit(items ...interface{})

func FirstError

func FirstError(errs ...error) error

func HasErrors

func HasErrors(errs []error) bool

func MergeErrItems

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

func New

func New(strs ...string) error

func Panic

func Panic(items ...interface{})

func PrintError

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

func PrintStacktrace

func PrintStacktrace(err error)

func RecoverAndExit

func RecoverAndExit(strs ...string)

func Wrap

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

func WrapMultiple

func WrapMultiple(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