errors

package
v0.0.0-...-80cfa99 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2017 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CompositeError

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

CompositeError An error that is a compsoite of others

func NewCompositeError

func NewCompositeError() *CompositeError

NewCompositeError Create a new empty composite error

func (*CompositeError) Append

func (e *CompositeError) Append(err error)

Append Append a new error onto this composite error

func (*CompositeError) Error

func (e *CompositeError) Error() string

func (*CompositeError) OrNilIfEmpty

func (e *CompositeError) OrNilIfEmpty() error

OrNilIfEmpty Return the composite error itself, or nil if it contains no errors

Jump to

Keyboard shortcuts

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