Versions in this module Expand all Collapse all v0 v0.14.0 Apr 24, 2024 v0.13.0 Feb 27, 2024 Changes in this version + const DefaultErrorCodeMask + const ErrorSubTypeMask + const ErrorSubTypeOffset + const ErrorTypeMask + const ErrorTypeOffset + const ReservedMask + const ReservedOffset + func Reserve(err interface{}) + type CodedError struct + ErrCode int64 + ErrMask int64 + ErrMsg string + Nested error + func NewCodedError(code int64, e interface{}, causes ...interface{}) *CodedError + func NewErrorCategory(code int64, e interface{}) *CodedError + func NewErrorSubType(code int64, e interface{}) *CodedError + func NewErrorType(code int64, e interface{}) *CodedError + func (e *CodedError) UnmarshalBinary(data []byte) error + func (e CodedError) Cause() error + func (e CodedError) Code() int64 + func (e CodedError) CodeMask() int64 + func (e CodedError) Error() string + func (e CodedError) Is(target error) bool + func (e CodedError) MarshalBinary() ([]byte, error) + func (e CodedError) MarshalText() ([]byte, error) + func (e CodedError) RootCause() error + func (e CodedError) WithCause(cause error, msg string, args ...interface{}) *CodedError + func (e CodedError) WithMessage(msg string, args ...interface{}) *CodedError + type ComparableError interface + Is func(target error) bool + type ComparableErrorCoder interface + CodeMask func() int64 + type ErrorCoder interface + Code func() int64 + type Hasher interface + Hash func() error + type NestedError interface + Cause func() error + RootCause func() error + type Unwrapper interface + Unwrap func() error + type WrappedError struct + ErrIs error + ErrMsg string + Type *CodedError + func (e WrappedError) Error() string + func (e WrappedError) Is(target error) bool + func (e WrappedError) MarshalText() ([]byte, error) + func (e WrappedError) Unwrap() error + func (e WrappedError) WithMessage(msg string, args ...interface{}) WrappedError