errs

package
v1.3.11 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2021 License: MPL-2.0 Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendError

func AppendError(err error, errors *[]error)

func CollectErrors

func CollectErrors(sep string, errs ...error) error

func FailOnError

func FailOnError(err error)

func FailOnErrorF

func FailOnErrorF(template string, args ...interface{})

func WrapError

func WrapError(err error, errSeparator, msg string, args ...interface{}) error

Types

type ErrorContainer

type ErrorContainer struct {
	// contains filtered or unexported fields
}

func NewErrorContainer

func NewErrorContainer() *ErrorContainer

func (*ErrorContainer) AddError

func (ec *ErrorContainer) AddError(err error)

func (*ErrorContainer) AddErrorF

func (ec *ErrorContainer) AddErrorF(msg string, args ...interface{})

func (*ErrorContainer) Result

func (ec *ErrorContainer) Result(sep string) error

Jump to

Keyboard shortcuts

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