errs

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func As

func As(err error, target interface{}) bool

As is wrapping function for errors.As

func Cause

func Cause(err error) error

Cause returns cause error in target error

func Is

func Is(err, target error) bool

Is is wrapping function for errors.Is

func Wrap

func Wrap(err error, msg string) error

Wrap returns wraped error instance

func Wrapf

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

Wrapf returns wraped error instance

Types

type Num

type Num int

Num is error number for gpgpdumo

const (
	ErrNullPointer Num = iota + 1
)

func (Num) Error

func (n Num) Error() string

Jump to

Keyboard shortcuts

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