multierror

package
v0.0.0-...-13f918f Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2016 License: MIT Imports: 1 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Errors

type Errors interface {
	error
	Errors() []error
}

type MultiError

type MultiError []error

func New

func New() *MultiError

func (*MultiError) Add

func (m *MultiError) Add(e error)

Add an error to this multi error

func (*MultiError) AnyErrors

func (m *MultiError) AnyErrors() bool

AnyErrors returns true if we have any errors

func (*MultiError) Count

func (m *MultiError) Count() int

Count the number of errors

func (*MultiError) Error

func (m *MultiError) Error() (msg string)

Error to satisfy the Go Error interface

func (*MultiError) Errors

func (m *MultiError) Errors() []error

Errors returns all collected errors if any

func (*MultiError) VerboseError

func (m *MultiError) VerboseError() error

VerboseError returns an error composed by all the errors we have in the list

Jump to

Keyboard shortcuts

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