pub enum TaskError {
ExecutionFailed {
message: String,
task_id: String,
timestamp: DateTime<Utc>,
},
DependencyNotSatisfied {
dependency: String,
task_id: String,
},
Timeout {
task_id: String,
timeout_seconds: u64,
},
ContextError {
task_id: String,
error: ContextError,
},
ValidationFailed {
message: String,
},
Unknown {
task_id: String,
message: String,
},
ReadinessCheckFailed {
task_id: String,
},
TriggerRuleFailed {
task_id: String,
},
}Expand description
Errors that can occur during task execution.
Task errors encompass execution failures, context issues, and any other problems that prevent a task from completing successfully.
Variants§
ExecutionFailed
Task execution failed with a message
DependencyNotSatisfied
Task dependency not satisfied
Timeout
Task exceeded timeout
ContextError
Context operation error within a task
ValidationFailed
Task validation failed
Unknown
Unknown error
ReadinessCheckFailed
Task readiness check failed
TriggerRuleFailed
Trigger rule evaluation failed
Trait Implementations§
Source§impl Error for TaskError
impl Error for TaskError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<ContextError> for TaskError
impl From<ContextError> for TaskError
Source§fn from(error: ContextError) -> Self
fn from(error: ContextError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for TaskError
impl !RefUnwindSafe for TaskError
impl Send for TaskError
impl Sync for TaskError
impl Unpin for TaskError
impl !UnwindSafe for TaskError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more