Documentation
¶
Index ¶
- Variables
- func E(args ...interface{}) error
- func Errorf(format string, args ...interface{}) error
- func Is(kind Kind, err error) bool
- func MarshalError(err error) []byte
- func MarshalErrorAppend(err error, b []byte) []byte
- func Match(err1, err2 error) bool
- func SafelyDo(work func())
- func Str(text string) error
- func UnmarshalError(b []byte) error
- type Error
- type Kind
- type Op
Constants ¶
This section is empty.
Variables ¶
View Source
var Separator = ":\n\t"
separator -> new line plus tabulator to intend error if previous not nil
Functions ¶
func MarshalError ¶
func MarshalErrorAppend ¶
func UnmarshalError ¶
Types ¶
type Error ¶
type Error struct { Op Op Kind Kind Err error Raised string // contains filtered or unexported fields }
func (*Error) MarshalAppend ¶
func (*Error) MarshalBinary ¶
func (*Error) UnmarshalBinary ¶
type Kind ¶
type Kind uint16
const ( Register Kind = iota + 100 Providers Logger ArgType Init Serve Unsupported Disabled Traverse FunctionCall )
Endure Kinds of errors. 100 - 199
const ( WatcherStopped Kind = iota + 200 SoftJob WorkerAllocate NoFreeWorkers Encode Decode ExecTTL IdleTTL TTL )
RR core kinds 200 - 299
Click to show internal directories.
Click to hide internal directories.