pub enum FlowError {
Show 15 variants
RunNotFound(String),
RunTerminal(String),
InvalidRunId(String),
RunConflict {
run_id: String,
reason: String,
},
NonDeterministic {
run_id: String,
reason: String,
},
EventConflict {
run_id: String,
expected_sequence: u64,
actual_sequence: u64,
},
HookTokenNotFound(String),
HookTokenConflict {
token: String,
existing_run_id: String,
existing_hook_id: String,
},
InvalidWorkflow(String),
InvalidTransition(String),
Store(String),
Runtime(String),
Serialization(Error),
Io(Error),
ReplayLimitExceeded(usize),
}Expand description
Errors surfaced by the workflow engine and runtime adapters.
Variants§
RunNotFound(String)
RunTerminal(String)
InvalidRunId(String)
RunConflict
NonDeterministic
EventConflict
HookTokenNotFound(String)
HookTokenConflict
InvalidWorkflow(String)
InvalidTransition(String)
Store(String)
Runtime(String)
Serialization(Error)
Io(Error)
ReplayLimitExceeded(usize)
Trait Implementations§
Source§impl Error for FlowError
impl Error for FlowError
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()
Auto Trait Implementations§
impl !RefUnwindSafe for FlowError
impl !UnwindSafe for FlowError
impl Freeze for FlowError
impl Send for FlowError
impl Sync for FlowError
impl Unpin for FlowError
impl UnsafeUnpin for FlowError
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