Versions in this module Expand all Collapse all v1 v1.20.76 Nov 28, 2023 Changes in this version + const DefaultErrorNamespace + const ErrcodeExecTmpleError + const ErrcodeNamespace + const ErrcodeParseTmplError + func Errorf(format string, a ...interface{}) error + func IsErrCode(err error) bool + func New(text string) error + type ErrCode interface + Append func(err ...interface{}) ErrCode + Code func() uint64 + Context func() ErrorContext + Error func() string + FullError func() error + Id func() string + Marshal func() ([]byte, error) + Namespace func() string + StackTrace func() string + WithContext func(k string, v interface{}) ErrCode + func NewErrorCode(id string, code uint64, namespace string, message string, stackTrace string, ...) ErrCode + func Unmarshal(data []byte) ErrCode + type ErrCodeTemplate struct + func T(code uint64, template string) ErrCodeTemplate + func TN(namespace string, code uint64, template string) ErrCodeTemplate + func (p *ErrCodeTemplate) IsEqual(err error) bool + func (p *ErrCodeTemplate) New(v ...Params) (err ErrCode) + type Error struct + Code uint64 + ID string + Message string + Namespace string + type ErrorContext map[string]interface + func (p ErrorContext) String() string + type Params map[string]interface