Skip to content

gojekfarm/go-multierror

Repository files navigation

Build Status

multierror

-- import "go-multierror"

Usage

type MultiError

type MultiError struct {
}

MultiError implements error interface. An instance of MultiError has zero or more errors.

func NewMultiError

func NewMultiError() *MultiError

NewMultiError: returns a thread safe instance of multierror

func (*MultiError) Error

func (m *MultiError) Error() string

Error implements error interface.

func (*MultiError) HasError

func (m *MultiError) HasError() error

HasError checks if MultiError has any error.

func (*MultiError) Push

func (m *MultiError) Push(errString string)

Push adds an error to MultiError.

About

Wrapper for handling zero or more errors

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published