Versions in this module Expand all Collapse all v0 v0.1.0 May 1, 2026 Changes in this version + func AddCallback(callback callbackFn) + func ResetCallbacks() + type Error struct + func New(message string, options ...ErrorOption) *Error + func NewDefault(options ...ErrorOption) *Error + func (e *Error) Error() string + func (e *Error) ErrorUser() *ErrorUser + func (e *Error) Response() ErrorResult + func (e *Error) SetKV(key string, value any) *Error + func (e *Error) SetMessage(message string) *Error + func (e *Error) SetMessageUser(message string) *Error + type ErrorOption func(*Error) + func WithCode(code string) ErrorOption + func WithCtx(ctx context.Context) ErrorOption + func WithData(data any) ErrorOption + func WithKV(key string, value any) ErrorOption + func WithKVMap(kv map[string]any) ErrorOption + func WithLevel(level string) ErrorOption + func WithMessageUser(message string) ErrorOption + func WithTraceID(traceID string) ErrorOption + type ErrorResult struct + Code string + Data any + KV map[string]any + Level string + Message string + MessageUser string + Timestamp string + TraceID string + func (e *ErrorResult) ToJSON() string + type ErrorUser struct + func (e *ErrorUser) Error() string