multierror – github.com/joeshaw/multierror Index | Files

package multierror

import "github.com/joeshaw/multierror"

multierror is a simple Go package for combining multiple errors together.

Index

Types

type Errors

type Errors []error

The Errors type wraps a slice of errors

func (Errors) Err

func (e Errors) Err() error

Returns a MultiError struct containing this Errors instance, or nil if there are zero errors contained.

type MultiError

type MultiError struct {
	Errors Errors
}

The MultiError type implements the error interface, and contains the Errors used to construct it.

func (*MultiError) Error

func (m *MultiError) Error() string

Returns a concatenated string of the contained errors

Source Files

multierror.go

Version
v0.0.0-20140124173710-69b34d4ec901 (latest)
Published
Jan 24, 2014
Platform
js/wasm
Imports
2 packages
Last checked
now

Tools for package owners.