errors

package
v0.0.0-...-fd2add7 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2016 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewError

func NewError(fmt_ string, arg_ ...interface{}) error

NewError

func NewErrorCaller

func NewErrorCaller(skip int, fmt_ string, arg_ ...interface{}) error

NewError creates a simple text-based error that is registered with package encoding/gob and therefore can be used in places of error interfaces during cross-calls. In contrast, note that due to the rules of gob encoding error objects that are not explicitly registered with gob cannot be assigned to error interfaces that are to be gob-serialized during a cross-call.

func NewPanic

func NewPanic(r interface{}) error

NewPanic

func Pack

func Pack(err error) error

Pack converts any error into a gob-serializable one that can be used in cross-calls.

func Unpack

func Unpack(x interface{}) error

Types

type Error

type Error struct {
	File string
	Line int
	Func string
	Body string
}

Error is cross-value that can be used to dynamically wrap a native error value into a more informative one for the purposes of passing across workers.

func (*Error) Error

func (e *Error) Error() string

Jump to

Keyboard shortcuts

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