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.
Click to show internal directories.
Click to hide internal directories.