errlist

package
v1.8.4 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrorList

type ErrorList struct {
	// contains filtered or unexported fields
}

ErrorList is a simple error aggregator to return multiple errors as one.

func NewErrorList

func NewErrorList() *ErrorList

NewErrorList returns an empty *ErrorList

func (*ErrorList) Add

func (el *ErrorList) Add(err error)

Add appends an error to the error list if the it not nil

func (*ErrorList) Err

func (el *ErrorList) Err() error

Err returns whether or not an error list is an error.

func (*ErrorList) Error

func (el *ErrorList) Error() string

Error satisfies the error interface.

Jump to

Keyboard shortcuts

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