errors

package
v0.0.0-...-26b1f7c Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2017 License: MIT Imports: 0 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AggregatedError

type AggregatedError struct {
	// Errors are contained errors
	Errors []error
}

AggregatedError is an error contains multiple errors

func (*AggregatedError) Add

func (e *AggregatedError) Add(err error) bool

Add adds one error and returns true if the error is added

func (*AggregatedError) AddErr

func (e *AggregatedError) AddErr(err error) error

AddErr explicitly adds one error If error is nil, nothing happens If error is AggregatedError, the contained errors are merged

func (*AggregatedError) AddMany

func (e *AggregatedError) AddMany(errs ...error) *AggregatedError

AddMany adds arbitrary number of errors

func (*AggregatedError) Aggregate

func (e *AggregatedError) Aggregate() error

Aggregate returns AggregatedError if it contains some errors, or returns nil

func (*AggregatedError) Error

func (e *AggregatedError) Error() string

Error implements error

Jump to

Keyboard shortcuts

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