Versions in this module Expand all Collapse all v1 v1.0.1 Mar 16, 2024 v1.0.0 Mar 14, 2024 Changes in this version + func As(err error, target any) bool + func Is(err error, target error) bool + func IsGonatusError(err error) bool + func Join(errs ...error) error + func New(conf ErrorConf) error + func NewMisappError(src gonatus.Gobjecter, msg string) error + func NewNilError(src gonatus.Gobjecter, level ErrorLevel, msg string) error + func NewNotFoundError(src gonatus.Gobjecter, level ErrorLevel, msg string) error + func NewNotImplError(src gonatus.Gobjecter) error + func NewSrcWrapper(src gonatus.Gobjecter, err error) error + func NewStateError(src gonatus.Gobjecter, level ErrorLevel, msg string) error + func NewUnknownError(src gonatus.Gobjecter) error + func NewValueError(src gonatus.Gobjecter, level ErrorLevel, msg string) error + func OfType(err error, errType ErrorType) bool + func Serialize(err error) gonatus.Conf + func Traceback(err error) string + func Unwrap(err error) error + func Wrap(msg string, errType ErrorType, wrapped error) error + type ErrorConf struct + Level ErrorLevel + Msg string + Traceback string + Type ErrorType + Wrapped []ErrorConf + type ErrorLevel int + const LevelError + const LevelFatal + const LevelInfo + const LevelWarning + const LevelWrapper + type ErrorType string + const TypeMisapp + const TypeNA + const TypeNil + const TypeNotFound + const TypeNotImpl + const TypeState + const TypeUnknown + const TypeValue