errors

package
Version: v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func E

func E(argument interface{}, arguments ...interface{}) error

func Errorf

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

package for all error handling.

func IsEmpty

func IsEmpty(err error) bool

func SetDebug

func SetDebug(debugOn bool)

func StringToError

func StringToError(text string) error

Str returns an error that formats as the given text. It is intended to be used as the error-typed argument to the E function.

Types

type Error

type Error struct {
	Op   Op
	Kind Kind
	Err  error
	// contains filtered or unexported fields
}

func (*Error) Error

func (e *Error) Error() string

type Kind

type Kind uint8
const (
	Ignore Kind = iota //Unclassified
	Placeholder
)

func (Kind) String

func (k Kind) String() string

type Op

type Op string

Source Files

Jump to

Keyboard shortcuts

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