multierror

package
v1.0.0-rc.3 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2017 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package multierror provides a simple way to treat a collection of errors as a single error.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Error

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

Error wraps a []error to implement the error interface.

func (Error) Append

func (e Error) Append(err error) Error

Append adds an error to the collection. Adding a nil error is a no-op.

func (Error) AsError

func (e Error) AsError() error

AsError converts the collection to a single error value.

Note that failing to use AsError will almost certainly lead to bugs with non-nil interfaces containing nil concrete values.

Jump to

Keyboard shortcuts

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