pub enum WorkflowError {
Show 22 variants
Execution(String),
Validation(String),
Scheduling(String),
Dag(DagError),
TaskExecution {
task_id: String,
message: String,
},
TaskTimeout {
task_id: String,
timeout_secs: u64,
},
State(String),
NotFound(String),
AlreadyExists(String),
ConditionalExpression(String),
Template(String),
Versioning(String),
Integration {
service: String,
message: String,
},
Serialization(Error),
Io(Error),
CronExpression(String),
Persistence(String),
Monitoring(String),
ResourceExhausted(String),
Deadlock {
workflow_id: String,
},
InvalidParameter {
param: String,
message: String,
},
Internal(String),
}Expand description
Comprehensive error types for the workflow engine.
Variants§
Execution(String)
Workflow execution error.
Validation(String)
Workflow validation error.
Scheduling(String)
Workflow scheduling error.
Dag(DagError)
DAG construction error.
TaskExecution
Task execution error.
TaskTimeout
Task timeout error.
State(String)
Workflow state error.
NotFound(String)
Workflow not found error.
AlreadyExists(String)
Workflow already exists error.
ConditionalExpression(String)
Conditional expression error.
Template(String)
Template error.
Versioning(String)
Versioning error.
Integration
Integration error.
Serialization(Error)
Serialization error.
Io(Error)
I/O error.
CronExpression(String)
Cron expression error.
Persistence(String)
Persistence error.
Monitoring(String)
Monitoring error.
ResourceExhausted(String)
Resource exhaustion error.
Deadlock
Deadlock detected error.
InvalidParameter
Invalid parameter error.
Internal(String)
Internal error.
Implementations§
Source§impl WorkflowError
impl WorkflowError
Sourcepub fn validation<S: Into<String>>(msg: S) -> Self
pub fn validation<S: Into<String>>(msg: S) -> Self
Create a validation error.
Sourcepub fn scheduling<S: Into<String>>(msg: S) -> Self
pub fn scheduling<S: Into<String>>(msg: S) -> Self
Create a scheduling error.
Sourcepub fn already_exists<S: Into<String>>(id: S) -> Self
pub fn already_exists<S: Into<String>>(id: S) -> Self
Create an already exists error.
Sourcepub fn task_execution<S1: Into<String>, S2: Into<String>>(
task_id: S1,
message: S2,
) -> Self
pub fn task_execution<S1: Into<String>, S2: Into<String>>( task_id: S1, message: S2, ) -> Self
Create a task execution error.
Sourcepub fn task_timeout<S: Into<String>>(task_id: S, timeout_secs: u64) -> Self
pub fn task_timeout<S: Into<String>>(task_id: S, timeout_secs: u64) -> Self
Create a task timeout error.
Sourcepub fn conditional<S: Into<String>>(msg: S) -> Self
pub fn conditional<S: Into<String>>(msg: S) -> Self
Create a conditional expression error.
Sourcepub fn versioning<S: Into<String>>(msg: S) -> Self
pub fn versioning<S: Into<String>>(msg: S) -> Self
Create a versioning error.
Sourcepub fn integration<S1: Into<String>, S2: Into<String>>(
service: S1,
message: S2,
) -> Self
pub fn integration<S1: Into<String>, S2: Into<String>>( service: S1, message: S2, ) -> Self
Create an integration error.
Sourcepub fn cron_expression<S: Into<String>>(msg: S) -> Self
pub fn cron_expression<S: Into<String>>(msg: S) -> Self
Create a cron expression error.
Sourcepub fn persistence<S: Into<String>>(msg: S) -> Self
pub fn persistence<S: Into<String>>(msg: S) -> Self
Create a persistence error.
Sourcepub fn monitoring<S: Into<String>>(msg: S) -> Self
pub fn monitoring<S: Into<String>>(msg: S) -> Self
Create a monitoring error.
Sourcepub fn resource_exhausted<S: Into<String>>(msg: S) -> Self
pub fn resource_exhausted<S: Into<String>>(msg: S) -> Self
Create a resource exhausted error.
Trait Implementations§
Source§impl Debug for WorkflowError
impl Debug for WorkflowError
Source§impl Display for WorkflowError
impl Display for WorkflowError
Source§impl Error for WorkflowError
impl Error for WorkflowError
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()
Source§impl From<DagError> for WorkflowError
impl From<DagError> for WorkflowError
Source§impl From<Error> for WorkflowError
impl From<Error> for WorkflowError
Auto Trait Implementations§
impl Freeze for WorkflowError
impl !RefUnwindSafe for WorkflowError
impl Send for WorkflowError
impl Sync for WorkflowError
impl Unpin for WorkflowError
impl UnsafeUnpin for WorkflowError
impl !UnwindSafe for WorkflowError
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.