errorhelper

package
v0.0.0-...-d09bcab Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2017 License: GPL-3.0 Imports: 0 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MultiError

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

MultiError is a structure for holding multiple errors so they can be checked at a later point.

func NewMultiError

func NewMultiError() *MultiError

NewMultiError returns a new MultiError object.

func (*MultiError) Add

func (m *MultiError) Add(err error)

Add will add the given error if it is not nil.

func (*MultiError) Error

func (m *MultiError) Error() string

Error will print the first error is encountered.

func (*MultiError) HasErrors

func (m *MultiError) HasErrors() bool

HasErrors will return true if any non-nil errors have been added.

Jump to

Keyboard shortcuts

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