Versions in this module Expand all Collapse all v1 v1.0.2 Dec 6, 2019 v1.0.1 Nov 14, 2019 Changes in this version + const GeneralByBug + const GeneralByClientBug + const GeneralByExternal + const GeneralByInput + const GeneralByRuntime + const NotError + func Close(c io.Closer) + func ForLog(v interface{}) string + func Handle(ctx context.Context, err interface{}) + func SetHandler(h Handler) + type CausedBy uint32 + const ByBug + const ByClientBug + const ByExternal + const ByInput + const ByRuntime + const NoError + func GetCausedBy(e error) CausedBy + func GetPanicCausedBy(v interface{}) CausedBy + func (i CausedBy) String() string + type CausedByError interface + Code func() Code + ErrorStack func() string + Inner func() error + type Code uint32 + func GetCode(v interface{}) Code + func NewCode(cause CausedBy, low uint32) Code + func (code Code) Caused() CausedBy + type Error struct + Err error + func Bug(text string) *Error + func Bugf(text string, a ...interface{}) *Error + func Caused(causedBy CausedBy, text string) *Error + func Causedf(causedBy CausedBy, text string, a ...interface{}) *Error + func ClientBug(text string) *Error + func ClientBugf(text string, a ...interface{}) *Error + func External(text string) *Error + func Externalf(text string, a ...interface{}) *Error + func Input(text string) *Error + func Inputf(text string, a ...interface{}) *Error + func New(text string) *Error + func NewBug(e error) *Error + func NewCaused(causedBy CausedBy, err error) *Error + func NewClientBug(e error) *Error + func NewExternal(e error) *Error + func NewInput(e error) *Error + func NewRuntime(e error) *Error + func Runtime(text string) *Error + func Runtimef(text string, a ...interface{}) *Error + func Wrap(causedBy CausedBy, err interface{}, text string) *Error + func Wrapf(causedBy CausedBy, err interface{}, text string, a ...interface{}) *Error + func (err *Error) Code() Code + func (err *Error) Error() string + func (err *Error) ErrorStack() string + func (err *Error) Inner() error + func (err *Error) Stack() string + func (err *Error) StackFrames() []StackFrame + func (err *Error) Unwrap() error + type Handler func(ctx context.Context, err interface{}) + type StackFrame struct + File string + LineNumber int + Name string + Package string + ProgramCounter uintptr + func NewStackFrame(pc uintptr) (frame StackFrame) + func (frame *StackFrame) Func() *runtime.Func + func (frame *StackFrame) SourceLine() (string, error) + func (frame *StackFrame) String() string