exn

package
v0.0.0-...-9dcd13a Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2017 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Catch

func Catch(x interface{}) error

Catch handles "recover()" return value.

Types

type Error

type Error struct {
	Kind Kind
	Msg  string
}

func Conv

func Conv(fileSet *token.FileSet, label string, node ast.Node) Error

Conv returns rich ErrConv error.

func Logic

func Logic(format string, args ...interface{}) Error

Logic returns LogicError error.

func NoImpl

func NoImpl(format string, args ...interface{}) Error

NoImpl returns NoImplError error.

func User

func User(format string, args ...interface{}) Error

User returns ErrUser error.

func (Error) Error

func (e Error) Error() string

type Kind

type Kind int
const (
	ErrLogic Kind = iota
	ErrNoImpl
	ErrUser
	ErrConv
)

Jump to

Keyboard shortcuts

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