25 lines
2.4 KiB
Rust
25 lines
2.4 KiB
Rust
// file: crates/ksp-job-backfill-lib/src/error.rs
|
|
// version: 5
|
|
|
|
/// Error code used when one Backfill checkpoint/frontier is incompatible with the current Job or semantic scope.
|
|
pub const ERROR_CODE_BACKFILL_CHECKPOINT_INVALID: ksp_core_lib::ErrorCode = ksp_core_lib::ErrorCode::new("job_backfill", "checkpoint_invalid");
|
|
/// Error code used when a signature page violates a bounded discovery invariant.
|
|
pub const ERROR_CODE_BACKFILL_DISCOVERY_INVALID: ksp_core_lib::ErrorCode = ksp_core_lib::ErrorCode::new("job_backfill", "discovery_invalid");
|
|
/// Error code used when paginated discovery cannot advance its exclusive RPC cursor safely.
|
|
pub const ERROR_CODE_BACKFILL_DISCOVERY_STALLED: ksp_core_lib::ErrorCode = ksp_core_lib::ErrorCode::new("job_backfill", "discovery_stalled");
|
|
/// Error code used when bounded concurrent candidate execution violates its internal admission or clock invariants.
|
|
pub const ERROR_CODE_BACKFILL_EXECUTION_INVALID: ksp_core_lib::ErrorCode = ksp_core_lib::ErrorCode::new("job_backfill", "execution_invalid");
|
|
/// Error code used when Store persistence returns an impossible Backfill state or targets a different network.
|
|
pub const ERROR_CODE_BACKFILL_PERSISTENCE_INVALID: ksp_core_lib::ErrorCode = ksp_core_lib::ErrorCode::new("job_backfill", "persistence_invalid");
|
|
/// Error code used when deterministic Transport-to-RAW conversion violates the v1 contract.
|
|
pub const ERROR_CODE_BACKFILL_RAW_CONVERSION_INVALID: ksp_core_lib::ErrorCode = ksp_core_lib::ErrorCode::new("job_backfill", "raw_conversion_invalid");
|
|
/// Error code used when one Backfill request violates its bounded admission contract.
|
|
pub const ERROR_CODE_BACKFILL_REQUEST_INVALID: ksp_core_lib::ErrorCode = ksp_core_lib::ErrorCode::new("job_backfill", "request_invalid");
|
|
/// Error code used when the concrete Backfill runtime reaches an impossible lifecycle or notification state.
|
|
pub const ERROR_CODE_BACKFILL_RUNTIME_INVALID: ksp_core_lib::ErrorCode = ksp_core_lib::ErrorCode::new("job_backfill", "runtime_invalid");
|
|
/// Error code used when one transaction signature text violates the bounded Base58-shape contract.
|
|
pub const ERROR_CODE_BACKFILL_SIGNATURE_INVALID: ksp_core_lib::ErrorCode = ksp_core_lib::ErrorCode::new("job_backfill", "signature_invalid");
|
|
|
|
/// Error code used internally when cooperative cancellation wins before durable Store submission.
|
|
pub(crate) const ERROR_CODE_BACKFILL_CANCELLED: ksp_core_lib::ErrorCode = ksp_core_lib::ErrorCode::new("job_backfill", "cancelled");
|