Documentation
¶
Overview ¶
Package sderr 错误处理
Index ¶
- Variables
- func AsErr(v any) error
- func AsT[E error](err error) (E, bool)
- func Combine(errs []error) error
- func NewWith(msg string, attrs ...any) error
- func Scatter(err error) []error
- func Sentinel(text string) error
- func WithStack(err error) error
- func WrapWith(err error, msg string, attrs ...any) error
- type Attr
- type Attrs
- type MultipleError
- type StackFrame
Constants ¶
This section is empty.
Variables ¶
View Source
var ( New = eris.New Newf = eris.Errorf Wrap = eris.Wrap Wrapf = eris.Wrapf Unwrap = eris.Unwrap Cause = eris.Cause Is = eris.Is As = eris.As )
export
View Source
var (
Append = multierror.Append
)
Functions ¶
Types ¶
type StackFrame ¶
type StackFrame = eris.StackFrame
func StackOf ¶
func StackOf(err error) []StackFrame
Directories
¶
Path | Synopsis |
---|---|
Package sdnotfounderr 检测常见包中的not found语意的错误
|
Package sdnotfounderr 检测常见包中的not found语意的错误 |
Click to show internal directories.
Click to hide internal directories.