errors

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2018 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cause

func Cause(err error) error

Cause returns the underlying cause for this error, if possible. If err does not implement causer.Cause(), then err is returned.

func Errorf

func Errorf(format string, a ...interface{}) error

Errorf wraps New and fmt.Sprintf.

func Merge

func Merge(err ...error) error

Merge merges multiple errors into one. Merge returns nil if all errors are nil.

func New

func New(text string) error

New returns an error that formats as the given text.

func Wrapf

func Wrapf(err error, format string, a ...interface{}) error

Wrapf wraps an error with a message. Wrapf returns nil if error is nil.

Types

This section is empty.

Jump to

Keyboard shortcuts

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