Versions in this module Expand all Collapse all v1 v1.1.2 Mar 20, 2024 Changes in this version + func Cause(err error) error + func Code(err error) gcode.Code + func Current(err error) error + func Equal(err, target error) bool + func HasCode(err error, code gcode.Code) bool + func HasError(err, target error) bool + func HasStack(err error) bool + func Is(err, target error) bool + func New(text string) error + func NewCode(code gcode.Code, text ...string) error + func NewCodeSkip(code gcode.Code, skip int, text ...string) error + func NewCodeSkipf(code gcode.Code, skip int, format string, args ...interface{}) error + func NewCodef(code gcode.Code, format string, args ...interface{}) error + func NewOption(option Option) error + func NewSkip(skip int, text string) error + func NewSkipf(skip int, format string, args ...interface{}) error + func NewWithOption(option Option) error + func Newf(format string, args ...interface{}) error + func Stack(err error) string + func Unwrap(err error) error + func Wrap(err error, text string) error + func WrapCode(code gcode.Code, err error, text ...string) error + func WrapCodeSkip(code gcode.Code, skip int, err error, text ...string) error + func WrapCodeSkipf(code gcode.Code, skip int, err error, format string, args ...interface{}) error + func WrapCodef(code gcode.Code, err error, format string, args ...interface{}) error + func WrapSkip(skip int, err error, text string) error + func WrapSkipf(skip int, err error, format string, args ...interface{}) error + func Wrapf(err error, format string, args ...interface{}) error + type Error struct + func (err *Error) Cause() error + func (err *Error) Code() gcode.Code + func (err *Error) Current() error + func (err *Error) Equal(target error) bool + func (err *Error) Error() string + func (err *Error) Format(s fmt.State, verb rune) + func (err *Error) Is(target error) bool + func (err *Error) SetCode(code gcode.Code) + func (err *Error) Stack() string + func (err *Error) Unwrap() error + func (err Error) MarshalJSON() ([]byte, error) + type ICause interface + Cause func() error + Error func() string + type ICode interface + Code func() gcode.Code + Error func() string + type ICurrent interface + Current func() error + Error func() string + type IEqual interface + Equal func(target error) bool + Error func() string + type IIs interface + Error func() string + Is func(target error) bool + type IStack interface + Error func() string + Stack func() string + type IUnwrap interface + Error func() string + Unwrap func() error + type Option struct + Code gcode.Code + Error error + Stack bool + Text string