Documentation
¶
Index ¶
- func Cause(err error) error
- func Errorf(format string, args ...interface{}) error
- func New(message string) error
- func NewSimple(message string) error
- func NewSimplef(format string, args ...interface{}) error
- func Newf(format string, args ...interface{}) error
- func ToDetailString(err error) string
- func ToString(err error) string
- func WithMessage(err error, message string) error
- func WithMessagef(err error, format string, args ...interface{}) error
- func WithSimple(err error) error
- func WithStack(err error) error
- func Wrap(err error, message string) error
- func WrapSimple(err error, message string) error
- func WrapSimplef(err error, format string, args ...interface{}) error
- func Wrapf(err error, format string, args ...interface{}) error
- type Errors
- func (m *Errors) Add(texts ...string)
- func (m *Errors) AddErrs(errs ...error)
- func (m *Errors) AddNoStack(texts ...string)
- func (m *Errors) Addf(format string, a ...interface{})
- func (m *Errors) AddfNoStack(format string, a ...interface{})
- func (m *Errors) Err() error
- func (m *Errors) Error() string
- func (m *Errors) Errs() []error
- func (m *Errors) FirstErr() error
- func (m *Errors) Format(s fmt.State, verb rune)
- func (m *Errors) String() string
- type Frame
- type StackTrace
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithMessagef ¶
对一个错误进行描述, 不包含调用信息
func WrapSimplef ¶
对一个错误进行描述并包含当前调用信息
Types ¶
type Errors ¶
type Errors struct {
// contains filtered or unexported fields
}
error列表
func (*Errors) AddfNoStack ¶
添加一个格式化错误文本, 不需要调用信息
type StackTrace ¶
type StackTrace []Frame
Click to show internal directories.
Click to hide internal directories.