Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var MaxStackDepth = 5
最大可纪录的调用堆栈的深度
Functions ¶
Types ¶
type StringError ¶
type StringError string
StringError 简单的字符串型错误
func (StringError) Error ¶
func (err StringError) Error() string
type TracedError ¶
type TracedError interface { error Callers() []uintptr // 返回堆栈调用信息 Unpack() error // 返回去掉堆栈调用信息的错误 }
func NewTracedError ¶
func NewTracedError(err interface{}) TracedError
NewTracedError 创建一个具有堆栈调用信息的错误
Click to show internal directories.
Click to hide internal directories.