Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DEBUG = false
Functions ¶
func Cleanmodulepath ¶
Types ¶
type FuncCallerInfo ¶
type FuncCallerInfo struct {
// contains filtered or unexported fields
}
func GetFuncCallerInfo ¶
func GetFuncCallerInfo(skips ...int) FuncCallerInfo
func (FuncCallerInfo) String ¶
func (fci FuncCallerInfo) String() string
type StackError ¶
type StackError struct { St FuncCallerInfo // contains filtered or unexported fields }
func Errorf ¶
func Errorf(format string, args ...interface{}) *StackError
Errorf with stack trace from caller. Use %w !
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.