// file: crates/ksp-worker-api/src/error.rs // version: 1 /// Error code used when a Worker identifier violates its bounded safe-code contract. pub const ERROR_CODE_WORKER_ID_INVALID: ksp_core_lib::ErrorCode = ksp_core_lib::ErrorCode::new("worker_api", "worker_id_invalid"); /// Error code used when a Worker kind code violates its bounded safe-code contract. pub const ERROR_CODE_WORKER_KIND_INVALID: ksp_core_lib::ErrorCode = ksp_core_lib::ErrorCode::new("worker_api", "worker_kind_invalid"); /// Error code used when a Worker snapshot sequence cannot advance without wrapping. pub const ERROR_CODE_WORKER_SNAPSHOT_SEQUENCE_EXHAUSTED: ksp_core_lib::ErrorCode = ksp_core_lib::ErrorCode::new("worker_api", "worker_snapshot_sequence_exhausted"); /// Error code used when a requested Worker lifecycle transition is not allowed. pub const ERROR_CODE_WORKER_TRANSITION_INVALID: ksp_core_lib::ErrorCode = ksp_core_lib::ErrorCode::new("worker_api", "worker_transition_invalid");