Documentation
¶
Overview ¶
Package errors
Package errors ¶
Package errors ¶
Package errors
Index ¶
Constants ¶
View Source
const (
TraceSIZE = 1 << 20
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FushinError ¶ added in v1.1.0
type FushinError struct {
// contains filtered or unexported fields
}
FushinError 包含goroutineID的可追溯错误
func New ¶ added in v1.1.0
func New(s string) FushinError
func Recover ¶ added in v1.1.0
func Recover(recover interface{}) FushinError
Recover must pass a recover func 当Recover一个FushinError时不保留堆栈信息 只记录goroutine id
func (*FushinError) Error ¶ added in v1.1.0
func (f *FushinError) Error() string
func (*FushinError) GID ¶ added in v1.1.0
func (f *FushinError) GID() string
GID 返回recover堆栈的goroutine id
func (*FushinError) GetTrace ¶ added in v1.1.0
func (f *FushinError) GetTrace() string
GetTrace 获取stack堆栈
func (*FushinError) HasRecover ¶ added in v1.1.0
func (f *FushinError) HasRecover() bool
Click to show internal directories.
Click to hide internal directories.