50 lines
5.0 KiB
Rust
50 lines
5.0 KiB
Rust
// file: crates/ksp-app-backfill-desk/src/errors.rs
|
|
// version: 9
|
|
|
|
//! Application-local error codes for Backfill Desk composition and desktop runtime surfaces.
|
|
|
|
/// Shared Backfill Desk runtime state is internally inconsistent.
|
|
pub(crate) const ERROR_CODE_APP_STATE_INVALID: ksp_core_lib::ErrorCode = ksp_core_lib::ErrorCode::new("backfill_desk", "app_state_invalid");
|
|
/// Shared Backfill Desk runtime state cannot be locked safely.
|
|
pub(crate) const ERROR_CODE_APP_STATE_LOCK_FAILED: ksp_core_lib::ErrorCode = ksp_core_lib::ErrorCode::new("backfill_desk", "app_state_lock_failed");
|
|
/// Backfill Desk cannot admit a campaign before Transport and Store composition is ready.
|
|
pub(crate) const ERROR_CODE_BACKFILL_COMPOSITION_NOT_READY: ksp_core_lib::ErrorCode =
|
|
ksp_core_lib::ErrorCode::new("backfill_desk", "backfill_composition_not_ready");
|
|
/// Backfill Desk received a campaign field or logical route that cannot map to the Backfill contract.
|
|
pub(crate) const ERROR_CODE_BACKFILL_REQUEST_INVALID: ksp_core_lib::ErrorCode = ksp_core_lib::ErrorCode::new("backfill_desk", "backfill_request_invalid");
|
|
/// Backfill Desk has no retained safe checkpoint/request pair available for in-session Resume.
|
|
pub(crate) const ERROR_CODE_BACKFILL_RESUME_UNAVAILABLE: ksp_core_lib::ErrorCode = ksp_core_lib::ErrorCode::new("backfill_desk", "backfill_resume_unavailable");
|
|
/// Backfill Desk refuses a concurrent Start while another Backfill run owns the single-run slot.
|
|
pub(crate) const ERROR_CODE_BACKFILL_RUN_ACTIVE: ksp_core_lib::ErrorCode = ksp_core_lib::ErrorCode::new("backfill_desk", "backfill_run_active");
|
|
/// Backfill Desk received a stale or mismatched Job identity for an active-run control operation.
|
|
pub(crate) const ERROR_CODE_BACKFILL_RUN_MISMATCH: ksp_core_lib::ErrorCode = ksp_core_lib::ErrorCode::new("backfill_desk", "backfill_run_mismatch");
|
|
/// Backfill Desk has no active or retained matching run for the requested control operation.
|
|
pub(crate) const ERROR_CODE_BACKFILL_RUN_NOT_ACTIVE: ksp_core_lib::ErrorCode = ksp_core_lib::ErrorCode::new("backfill_desk", "backfill_run_not_active");
|
|
/// Backfill Desk composite configuration is missing or references an unexpected document.
|
|
pub(crate) const ERROR_CODE_CONFIG_COMPOSITE_INVALID: ksp_core_lib::ErrorCode = ksp_core_lib::ErrorCode::new("backfill_desk", "config_composite_invalid");
|
|
/// Frontend logging requested an unsupported level.
|
|
pub(crate) const ERROR_CODE_FRONTEND_LOG_LEVEL_INVALID: ksp_core_lib::ErrorCode = ksp_core_lib::ErrorCode::new("backfill_desk", "frontend_log_level_invalid");
|
|
/// Frontend logging requested a target outside the application whitelist.
|
|
pub(crate) const ERROR_CODE_FRONTEND_LOG_TARGET_INVALID: ksp_core_lib::ErrorCode = ksp_core_lib::ErrorCode::new("backfill_desk", "frontend_log_target_invalid");
|
|
/// Backfill Desk could not install the managed Logging runtime or its safe fallback.
|
|
pub(crate) const ERROR_CODE_LOGGING_BOOTSTRAP_FAILED: ksp_core_lib::ErrorCode = ksp_core_lib::ErrorCode::new("backfill_desk", "logging_bootstrap_failed");
|
|
/// Splash readiness was invoked from a window other than the splash window.
|
|
pub(crate) const ERROR_CODE_SPLASH_ORIGIN_INVALID: ksp_core_lib::ErrorCode = ksp_core_lib::ErrorCode::new("backfill_desk", "splash_origin_invalid");
|
|
/// A KSP desk splash environment duration is malformed or exceeds its safety bound.
|
|
pub(crate) const ERROR_CODE_SPLASH_SETTING_INVALID: ksp_core_lib::ErrorCode = ksp_core_lib::ErrorCode::new("backfill_desk", "splash_setting_invalid");
|
|
/// Backfill Desk Store and Transport configuration target different logical networks.
|
|
pub(crate) const ERROR_CODE_STORE_NETWORK_MISMATCH: ksp_core_lib::ErrorCode = ksp_core_lib::ErrorCode::new("backfill_desk", "store_network_mismatch");
|
|
/// Backfill Desk cannot prove a single Transport network before Store opening.
|
|
pub(crate) const ERROR_CODE_STORE_NETWORK_UNAVAILABLE: ksp_core_lib::ErrorCode = ksp_core_lib::ErrorCode::new("backfill_desk", "store_network_unavailable");
|
|
/// Backfill Desk cannot complete the bounded Store shutdown lifecycle.
|
|
pub(crate) const ERROR_CODE_STORE_SHUTDOWN_FAILED: ksp_core_lib::ErrorCode = ksp_core_lib::ErrorCode::new("backfill_desk", "store_shutdown_failed");
|
|
/// Tauri runtime assembly or execution failed.
|
|
pub(crate) const ERROR_CODE_TAURI_RUNTIME_FAILED: ksp_core_lib::ErrorCode = ksp_core_lib::ErrorCode::new("backfill_desk", "tauri_runtime_failed");
|
|
/// A required Tauri window is missing from the configured application runtime.
|
|
pub(crate) const ERROR_CODE_TAURI_WINDOW_MISSING: ksp_core_lib::ErrorCode = ksp_core_lib::ErrorCode::new("backfill_desk", "tauri_window_missing");
|
|
/// A Tauri window show/focus/destroy/event operation failed.
|
|
pub(crate) const ERROR_CODE_TAURI_WINDOW_OPERATION_FAILED: ksp_core_lib::ErrorCode =
|
|
ksp_core_lib::ErrorCode::new("backfill_desk", "tauri_window_operation_failed");
|
|
/// Backfill Desk cannot derive a safe Transport readiness contract from the Transport registry.
|
|
pub(crate) const ERROR_CODE_TRANSPORT_READINESS_INVALID: ksp_core_lib::ErrorCode = ksp_core_lib::ErrorCode::new("backfill_desk", "transport_readiness_invalid");
|