Skip to main content

Module khive_error

Module khive_error 

Source
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 + details
  • ErrorKind — semantic severity / HTTP-mapping bucket
  • ErrorCode — 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).
ErrorCode
Domain-scoped numeric error code.
KhiveError
Unified error type for the khive runtime.

Enums§

ErrorDomain
Domain that owns the error code namespace.
ErrorKind
Semantic error category — maps to HTTP status codes.
RetryHint
Guidance to callers on whether retrying the operation makes sense.