multierror: Index | Files

package multierror

import ""

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


Package Files


type Errors Uses

type Errors []error

The Errors type wraps a slice of errors

func (Errors) Err Uses

func (e Errors) Err() error

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

type MultiError Uses

type MultiError struct {
    Errors Errors

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

func (*MultiError) Error Uses

func (m *MultiError) Error() string

Returns a concatenated string of the contained errors

Package multierror imports 2 packages (graph) and is imported by 1308 packages. Updated 2016-07-24. Refresh now. Tools for package owners.