pub enum WorkflowError {
Show 30 variants
WorkflowNotFound(String),
TaskNotFound(String),
CycleDetected,
InvalidConfiguration(String),
TaskExecutionFailed {
task_id: String,
reason: String,
},
TaskTimeout(String),
TaskCancelled(String),
DependencyFailed(String),
Database(String),
Serialization(Error),
YamlParsing(Error),
Io(Error),
FileWatcher(String),
InvalidTaskType(String),
MissingParameter(String),
InvalidParameter {
param: String,
value: String,
},
ResourceLimitExceeded {
resource: String,
limit: String,
},
WorkerPool(String),
Scheduler(String),
InvalidCronExpression(String),
FileNotFound(PathBuf),
InvalidUrl(ParseError),
Http(String),
WebSocket(String),
LockPoisoned,
ShutdownInProgress,
AlreadyRunning(String),
NotRunning(String),
InvalidStateTransition {
from: String,
to: String,
},
Generic(String),
}Expand description
Errors that can occur during workflow orchestration.
Variants§
WorkflowNotFound(String)
Workflow not found.
TaskNotFound(String)
Task not found.
CycleDetected
Cycle detected in workflow DAG.
InvalidConfiguration(String)
Invalid workflow configuration.
TaskExecutionFailed
Task execution failed.
TaskTimeout(String)
Task timeout.
TaskCancelled(String)
Task cancelled.
DependencyFailed(String)
Dependency failure.
Database(String)
Database error.
Serialization(Error)
Serialization error.
YamlParsing(Error)
YAML parsing error.
Io(Error)
I/O error.
FileWatcher(String)
File watcher error.
InvalidTaskType(String)
Invalid task type.
MissingParameter(String)
Missing required parameter.
InvalidParameter
Invalid parameter value.
ResourceLimitExceeded
Resource limit exceeded.
WorkerPool(String)
Worker pool error.
Scheduler(String)
Scheduler error.
InvalidCronExpression(String)
Invalid cron expression.
FileNotFound(PathBuf)
File not found.
InvalidUrl(ParseError)
Invalid URL.
Http(String)
HTTP error.
WebSocket(String)
WebSocket error.
LockPoisoned
Lock poisoned.
ShutdownInProgress
Shutdown in progress.
AlreadyRunning(String)
Already running.
NotRunning(String)
Not running.
InvalidStateTransition
Invalid state transition.
Generic(String)
Generic error.
Implementations§
Source§impl WorkflowError
impl WorkflowError
Sourcepub fn is_recoverable(&self) -> bool
pub fn is_recoverable(&self) -> bool
Check if error is recoverable.
Sourcepub fn should_retry(&self) -> bool
pub fn should_retry(&self) -> bool
Check if error should trigger retry.
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)>
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<Error> for WorkflowError
impl From<Error> for WorkflowError
Source§impl From<Error> for WorkflowError
impl From<Error> for WorkflowError
Source§impl From<Error> for WorkflowError
impl From<Error> for WorkflowError
Source§impl From<ParseError> for WorkflowError
impl From<ParseError> for WorkflowError
Source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for WorkflowError
impl !UnwindSafe for WorkflowError
impl Freeze for WorkflowError
impl Send for WorkflowError
impl Sync for WorkflowError
impl Unpin for WorkflowError
impl UnsafeUnpin 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
Mutably borrows from an owned value. Read more