Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var OkStackErr = StackError{/* contains filtered or unexported fields */}
Functions ¶
func NewStackError ¶
func WithMessage ¶
WithMessageEx creates a new stack error with err that is formatted by `format v...`
Types ¶
type StackError ¶
type StackError struct {
// contains filtered or unexported fields
}
StackError out a chain link error. Example: chain1 = errChain { err: errors.New("hello word"), msg: "chain1"} chain2 = errChain {err: chain1, msg: "chain2"} chain3 = errChain {err: chain2, msg: "chain3"} stackError = StackError {errChain: chain3, stackPtrs: []uintptr} stdout: err: "hello word" msg:
chain1, chain2, chain3
stacktrace:
func (*StackError) Error ¶
func (stackErr *StackError) Error() string
func (*StackError) IsNil ¶
func (stackErr *StackError) IsNil() bool
func (*StackError) ShortTerm ¶
func (stackErr *StackError) ShortTerm() string
Click to show internal directories.
Click to hide internal directories.