Versions in this module Expand all Collapse all v0 v0.10.0 Mar 25, 2026 Changes in this version type Err + func (e *Err) PlatformCode() string + func (e *Err) WithPlatformCode(code string) *Err v0.9.0 Mar 18, 2026 Changes in this version + type Code string + const ErrAlreadyExists + const ErrCancelled + const ErrDeadlineExceeded + const ErrGone + const ErrInternal + const ErrInvalidInput + const ErrNotFound + const ErrNotImplemented + const ErrPermissionDenied + const ErrPreconditionFailed + const ErrRateLimited + const ErrUnauthorized + const ErrUnavailable + func (c Code) Description() string + type Err struct + func Internal(msg string, args ...any) *Err + func InvalidInput(msg string, args ...any) *Err + func New(code Code, message string) *Err + func NotFound(msg string, args ...any) *Err + func Wrap(code Code, message string, err error) *Err + func (e *Err) Code() Code + func (e *Err) Detailed() string + func (e *Err) Error() string + func (e *Err) ErrorCode() string + func (e *Err) ErrorContext() map[string]any + func (e *Err) Fields() map[string]any + func (e *Err) MarshalJSON() ([]byte, error) + func (e *Err) Message() string + func (e *Err) Unwrap() error + func (e *Err) WithContext(key string, value any) *Err + func (e *Err) WithError(err error) *Err