errors

package
v0.0.31 Latest Latest
Warning

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

Go to latest
Published: May 15, 2015 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Error

func Error(msg string) error

func Errorf

func Errorf(msg string, args ...interface{}) error

func NewMultiError

func NewMultiError(errors ...error) error

func WrapComplexError

func WrapComplexError(cause, err error) error

func WrapError

func WrapError(cause error, msg string) error

func WrapErrorf

func WrapErrorf(cause error, msg string, args ...interface{}) error

Types

type ComplexError

type ComplexError struct {
	Err   error
	Cause error
}

func (ComplexError) Error

func (e ComplexError) Error() string

func (ComplexError) ShortError

func (e ComplexError) ShortError() string

type MultiError

type MultiError struct {
	Errors []error
}

func (MultiError) Error

func (e MultiError) Error() string

type ShortenableError

type ShortenableError interface {
	error
	ShortError() string
}

Jump to

Keyboard shortcuts

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