Versions in this module Expand all Collapse all v0 v0.1.0 Oct 14, 2025 Changes in this version + func As(err error, target interface{}) bool + func Is(err, target error) bool + func IsRetryable(err error) bool + type ErrorClassification string + const ClassificationPermanent + const ClassificationRetryable + func GetClassification(err error) ErrorClassification + func (c ErrorClassification) IsRetryable() bool + type ErrorCode string + const CodeAlreadyExists + const CodeBuildFailed + const CodeCUEBuildFailed + const CodeCUEDecodeFailed + const CodeCUEEncodeFailed + const CodeCUELoadFailed + const CodeCUEValidationFailed + const CodeConflict + const CodeDatabase + const CodeExecutionFailed + const CodeForbidden + const CodeInternal + const CodeInvalidConfig + const CodeInvalidInput + const CodeNetwork + const CodeNotFound + const CodeNotImplemented + const CodePublishFailed + const CodeRateLimit + const CodeSchemaFailed + const CodeSchemaVersionIncompatible + const CodeTimeout + const CodeUnauthorized + const CodeUnavailable + const CodeUnknown + func GetCode(err error) ErrorCode + type ErrorResponse struct + Classification string + Code string + Context map[string]interface{} + Message string + func ToJSON(err error) *ErrorResponse + type PlatformError interface + Classification func() ErrorClassification + Code func() ErrorCode + Context func() map[string]interface{} + Message func() string + Unwrap func() error + func New(code ErrorCode, message string) PlatformError + func Newf(code ErrorCode, format string, args ...interface{}) PlatformError + func WithClassification(err error, classification ErrorClassification) PlatformError + func WithContext(err error, key string, value interface{}) PlatformError + func WithContextMap(err error, ctx map[string]interface{}) PlatformError + func Wrap(err error, code ErrorCode, message string) PlatformError + func WrapWithContext(err error, code ErrorCode, message string, ctx map[string]interface{}) PlatformError + func Wrapf(err error, code ErrorCode, format string, args ...interface{}) PlatformError