xerrors

package
v0.0.0-...-ed9fe1d Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2018 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func F

func F(format string, v ...interface{}) error

F returns a short hand for fmt.Errorf

func MustNil

func MustNil(err error)

MustNil checks err is nil, or panic.

func Wrap

func Wrap(err error, format string, args ...interface{}) error

Wrap wraps an error with an additional message.

Types

type MultiError

type MultiError []error

MultiError is an error collection as a single error. error[i] might be nil if there is no error.

func NewMultiError

func NewMultiError(size int) MultiError

NewMultiError creates MultiError instance with the given size.

func (MultiError) Error

func (me MultiError) Error() string

Error implemnts error.Error()

func (MultiError) HasError

func (me MultiError) HasError() bool

HasError returns if there is an error in the errors.

Jump to

Keyboard shortcuts

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