Versions in this module Expand all Collapse all v1 v1.0.0 Mar 16, 2026 Changes in this version + type Err struct + func From(err error) *Err + func Internal(msg string, args ...any) *Err + func InvalidInput(msg string, args ...any) *Err + func New(code ErrorCode, message string) *Err + func NotFound(msg string, args ...any) *Err + func Wrap(code ErrorCode, message string, err error) *Err + func (e *Err) Detailed() string + func (e *Err) Error() string + func (e *Err) GetCode() string + func (e *Err) GetContext() map[string]any + func (e *Err) MarshalJSON() ([]byte, error) + func (e *Err) Unwrap() error + func (e *Err) WithContext(key string, value any) *Err + func (e *Err) WithError(err error) *Err + type Error interface + Detailed func() string + GetCode func() string + GetContext func() map[string]any + type ErrorCode string + const ErrConflict + const ErrDeadlineExceeded + const ErrInternal + const ErrInvalidInput + const ErrNotImplemented + const ErrPermissionDenied + const ErrPreconditionFailed + const ErrRateLimited + const ErrResourceNotFound + const ErrUnauthorized + const ErrUnavailable + func (c ErrorCode) Description() string