16 lines
1.4 KiB
Rust
16 lines
1.4 KiB
Rust
// file: crates/ksp-store-api/src/error.rs
|
|
// version: 2
|
|
|
|
/// Error code used when a RAW write collides with divergent content for the same logical identity.
|
|
pub const ERROR_CODE_RAW_CONFLICT: ksp_core_lib::ErrorCode = ksp_core_lib::ErrorCode::new("store_api", "raw_conflict");
|
|
/// Error code used when a RAW Store model violates one of its backend-agnostic invariants.
|
|
pub const ERROR_CODE_RAW_MODEL_INVALID: ksp_core_lib::ErrorCode = ksp_core_lib::ErrorCode::new("store_api", "raw_model_invalid");
|
|
/// Error code used when a KSP-owned RAW persistence payload violates its format or admission contract.
|
|
pub const ERROR_CODE_RAW_PAYLOAD_INVALID: ksp_core_lib::ErrorCode = ksp_core_lib::ErrorCode::new("store_api", "raw_payload_invalid");
|
|
/// Error code used when acquisition provenance is malformed, unsafe or internally inconsistent.
|
|
pub const ERROR_CODE_RAW_PROVENANCE_INVALID: ksp_core_lib::ErrorCode = ksp_core_lib::ErrorCode::new("store_api", "raw_provenance_invalid");
|
|
/// Error code used when one RAW query or cursor violates backend-agnostic query invariants.
|
|
pub const ERROR_CODE_RAW_QUERY_INVALID: ksp_core_lib::ErrorCode = ksp_core_lib::ErrorCode::new("store_api", "raw_query_invalid");
|
|
/// Error code used when a RAW retention transition violates the logical lifecycle contract.
|
|
pub const ERROR_CODE_RAW_RETENTION_INVALID: ksp_core_lib::ErrorCode = ksp_core_lib::ErrorCode::new("store_api", "raw_retention_invalid");
|