errors

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 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 {
	// contains filtered or unexported fields
}

Aggregate definition of a construct that aggregates multiple errors in a safe manner

func New

func New() *Aggregate

New creates a new multi 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 error count

func (*Aggregate) Error

func (a *Aggregate) Error() string

Error returns the string representation of the errors in the internal collection

Jump to

Keyboard shortcuts

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