pub enum PureflowError {
Validation(ValidationError),
Execution(ExecutionError),
Cancellation(CancellationError),
Lifecycle(LifecycleError),
Metadata(MetadataError),
}Expand description
Shared runtime-facing error for the Pureflow foundation layer.
Variants§
Validation(ValidationError)
Invalid user- or config-provided data.
Execution(ExecutionError)
Runtime node execution failed.
Cancellation(CancellationError)
Runtime cancelled execution.
Lifecycle(LifecycleError)
Runtime failed while observing lifecycle transitions.
Metadata(MetadataError)
Runtime failed while collecting metadata records.
Implementations§
Source§impl PureflowError
impl PureflowError
Sourcepub const fn visibility(&self) -> ErrorVisibility
pub const fn visibility(&self) -> ErrorVisibility
Whether this error should be shown directly to a human.
Sourcepub const fn retry_disposition(&self) -> RetryDisposition
pub const fn retry_disposition(&self) -> RetryDisposition
Retry guidance for this failure.
Trait Implementations§
Source§impl Clone for PureflowError
impl Clone for PureflowError
Source§fn clone(&self) -> PureflowError
fn clone(&self) -> PureflowError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PureflowError
impl Debug for PureflowError
Source§impl Display for PureflowError
impl Display for PureflowError
Source§impl Error for PureflowError
impl Error for PureflowError
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<CancellationError> for PureflowError
impl From<CancellationError> for PureflowError
Source§fn from(value: CancellationError) -> Self
fn from(value: CancellationError) -> Self
Converts to this type from the input type.
Source§impl From<CapabilityValidationError> for PureflowError
impl From<CapabilityValidationError> for PureflowError
Source§fn from(value: CapabilityValidationError) -> Self
fn from(value: CapabilityValidationError) -> Self
Converts to this type from the input type.
Source§impl From<ExecutionError> for PureflowError
impl From<ExecutionError> for PureflowError
Source§fn from(value: ExecutionError) -> Self
fn from(value: ExecutionError) -> Self
Converts to this type from the input type.
Source§impl From<IdentifierError> for PureflowError
impl From<IdentifierError> for PureflowError
Source§fn from(value: IdentifierError) -> Self
fn from(value: IdentifierError) -> Self
Converts to this type from the input type.
Source§impl From<JoinError> for PureflowError
impl From<JoinError> for PureflowError
Source§impl From<LifecycleError> for PureflowError
impl From<LifecycleError> for PureflowError
Source§fn from(value: LifecycleError) -> Self
fn from(value: LifecycleError) -> Self
Converts to this type from the input type.
Source§impl From<MetadataError> for PureflowError
impl From<MetadataError> for PureflowError
Source§fn from(value: MetadataError) -> Self
fn from(value: MetadataError) -> Self
Converts to this type from the input type.
Source§impl From<PortRecvError> for PureflowError
impl From<PortRecvError> for PureflowError
Source§fn from(value: PortRecvError) -> Self
fn from(value: PortRecvError) -> Self
Converts to this type from the input type.
Source§impl From<PortSendError> for PureflowError
impl From<PortSendError> for PureflowError
Source§fn from(value: PortSendError) -> Self
fn from(value: PortSendError) -> Self
Converts to this type from the input type.
Source§impl From<RecvError> for PureflowError
impl From<RecvError> for PureflowError
Source§impl<T> From<SendError<T>> for PureflowError
impl<T> From<SendError<T>> for PureflowError
Source§impl From<ValidationError> for PureflowError
impl From<ValidationError> for PureflowError
Source§fn from(value: ValidationError) -> Self
fn from(value: ValidationError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PureflowError
impl PartialEq for PureflowError
Source§fn eq(&self, other: &PureflowError) -> bool
fn eq(&self, other: &PureflowError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for PureflowError
impl StructuralPartialEq for PureflowError
Auto Trait Implementations§
impl Freeze for PureflowError
impl RefUnwindSafe for PureflowError
impl Send for PureflowError
impl Sync for PureflowError
impl Unpin for PureflowError
impl UnsafeUnpin for PureflowError
impl UnwindSafe for PureflowError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).