Expand description
Structured cross-crate error model for khive.
Ported from khive-internal’s foundation/types/src/error/.
§Design
KhiveError— unified error struct with kind + code + message + detailsErrorKind— semantic severity / HTTP-mapping bucketErrorCode— domain-scoped numeric code (ErrorDomain::Db, 1)Details— bounded key/value metadata (max 8 pairs)RetryHint— whether the caller should retry
All types are #![no_std] compatible. Serde impls are feature-gated
behind the serde flag (existing crate pattern).
Structs§
- Details
- Bounded key/value metadata attached to a
KhiveError(max 8 pairs). - Error
Code - Domain-scoped numeric error code.
- Khive
Error - Unified error type for the khive runtime.
Enums§
- Error
Domain - Domain that owns the error code namespace.
- Error
Kind - Semantic error category — maps to HTTP status codes.
- Retry
Hint - Guidance to callers on whether retrying the operation makes sense.