clierrors

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2018 License: CC0-1.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckError

func CheckError(err error)

CheckError is for a Single check failure

Types

type ExitError

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

ExitError fulfills both the builtin `error` interface and `ExitCoder`

func NewExitError

func NewExitError(message interface{}, exitCode int) *ExitError

NewExitError makes a new *ExitError

func (*ExitError) Error

func (ee *ExitError) Error() string

Error returns the string message, fulfilling the interface required by `error`

func (*ExitError) ExitCode

func (ee *ExitError) ExitCode() int

ExitCode returns the exit code, fulfilling the interface required by `ExitCoder`

type MultiError

type MultiError struct {
	Errors []error
}

MultiError is an error that wraps multiple errors.

func NewMultiError

func NewMultiError(err ...error) MultiError

NewMultiError creates a new MultiError. Pass in one or more errors.

func (MultiError) Error

func (m MultiError) Error() string

Error implements the error interface.

Jump to

Keyboard shortcuts

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