errors

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Aggregate

type Aggregate struct {
	sync.Mutex
	// contains filtered or unexported fields
}

Aggregate for aggregating errors into one. The aggregation is goroutine safe.

func New

func New() *Aggregate

New creates a new aggregate error.

func (*Aggregate) Append

func (a *Aggregate) Append(err error)

Append a error to the internal collection.

func (*Aggregate) Count

func (a *Aggregate) Count() int

Count returns the count of the aggregated errors.

func (*Aggregate) Error

func (a *Aggregate) Error() string

Error returns the string representation of the aggregated errors.

Jump to

Keyboard shortcuts

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