#[non_exhaustive]pub enum LifecycleError {
StaleVersion {
expected: ExecutionVersion,
actual: ExecutionVersion,
},
IllegalTransition {
from: BatchStatus,
to: BatchStatus,
},
RestartRequiresNewAttempt {
from: BatchStatus,
},
NotRestartable {
status: BatchStatus,
},
AttemptIdentifierReused,
FailedTransitionMissingFailure,
InvalidTransitionTime {
source: DomainError,
},
VersionExhausted {
version: ExecutionVersion,
},
CountExhausted,
}Expand description
A typed lifecycle-policy or optimistic-concurrency failure.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
StaleVersion
The caller observed an older or otherwise different execution version.
Fields
expected: ExecutionVersionThe version supplied by the caller.
actual: ExecutionVersionThe current version of the execution record.
IllegalTransition
The requested in-place status transition is not legal.
Fields
from: BatchStatusThe current framework status.
to: BatchStatusThe requested framework status.
RestartRequiresNewAttempt
Restart is valid only by creating another execution attempt.
Fields
from: BatchStatusThe finished status from which a restart was requested.
NotRestartable
The current execution outcome cannot be restarted.
Fields
status: BatchStatusThe status that prevents restart.
AttemptIdentifierReused
A restart reused a prior job- or step-attempt identifier.
FailedTransitionMissingFailure
A transition to FAILED did not include a redacted failure summary.
InvalidTransitionTime
A supplied transition instant violated timestamp ordering.
Fields
source: DomainErrorThe facade-owned validation failure.
VersionExhausted
The optimistic version cannot be incremented.
Fields
version: ExecutionVersionThe maximum current version.
CountExhausted
A durable execution counter cannot be incremented.
Trait Implementations§
Source§impl Clone for LifecycleError
impl Clone for LifecycleError
Source§fn clone(&self) -> LifecycleError
fn clone(&self) -> LifecycleError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for LifecycleError
impl Debug for LifecycleError
Source§impl Display for LifecycleError
impl Display for LifecycleError
impl Eq for LifecycleError
Source§impl Error for LifecycleError
impl Error for LifecycleError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()