Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DEBUG = false CheckArgs = false )
Functions ¶
func Cleanmodulepath ¶
Types ¶
type FuncCallerInfo ¶
type FuncCallerInfo struct {
Name string `json:"name,omitempty"`
File string `json:"file,omitempty"`
Line int `json:"line,omitempty"`
}
func GetFuncCallerInfo ¶
func GetFuncCallerInfo(skips ...int) FuncCallerInfo
func (FuncCallerInfo) String ¶
func (fci FuncCallerInfo) String() string
type StackError ¶
type StackError struct {
St FuncCallerInfo `json:"caller"`
// contains filtered or unexported fields
}
func Wrap ¶
func Wrap(err error, skips ...int) *StackError
Wrap with stack trace from caller's caller (nil error returns nil)
func (*StackError) Stack ¶
func (s *StackError) Stack() FuncCallerInfo
func (*StackError) Underlying ¶
func (s *StackError) Underlying() error
func (*StackError) Unwrap ¶
func (s *StackError) Unwrap() error
Click to show internal directories.
Click to hide internal directories.