errors

package module
v0.0.0-...-5629da0 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2018 License: MIT Imports: 2 Imported by: 5 modules, 3 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

errors

Go package to handle errors

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Errorf

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

func New

func New(message string) error

func Wrap

func Wrap(orig error, message string) error

func WrapErr

func WrapErr(orig error, err error) error

func Wrapf

func Wrapf(orig error, message string, args ...interface{}) error

Types

type Error

type Error struct {
	Orig error
	Err  error
}

func (Error) Error

func (err Error) Error() string

func (Error) Has

func (err Error) Has(T interface{}) bool

func (Error) Root

func (err Error) Root() error

Jump to

Keyboard shortcuts

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