errorhelper

package
Version: 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: 2

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.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL