pub enum ExceptionDisposition {
Propagate,
Handled,
Continued,
}Expand description
Disposition for an exception handler or catch clause (ADR-0019).
§YAML casing
serde uses lowercase casing: handled, propagate, continued.
§Default divergence
ExceptionDisposition::default() returns Propagate (first variant per #[derive(Default)]),
but the YAML + builder layers default to Handled for doTry catch clauses
(via default_handled_disposition() in camel-dsl/src/yaml_ast.rs and the DoCatchBuilder::do_catch_exception constructor).
Direct struct construction should explicitly set disposition rather than relying on Default.
Variants§
Propagate
After retry exhaustion / on_steps / DLC, re-throw to upstream.
Handled
Suppress re-throw. The handler’s exchange is the final result.
Continued
Clear the error. The pipeline continues to the NEXT step.
Trait Implementations§
Source§impl Clone for ExceptionDisposition
impl Clone for ExceptionDisposition
Source§fn clone(&self) -> ExceptionDisposition
fn clone(&self) -> ExceptionDisposition
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 moreimpl Copy for ExceptionDisposition
Source§impl Debug for ExceptionDisposition
impl Debug for ExceptionDisposition
Source§impl Default for ExceptionDisposition
impl Default for ExceptionDisposition
Source§fn default() -> ExceptionDisposition
fn default() -> ExceptionDisposition
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ExceptionDisposition
impl<'de> Deserialize<'de> for ExceptionDisposition
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ExceptionDisposition
Source§impl PartialEq for ExceptionDisposition
impl PartialEq for ExceptionDisposition
Source§fn eq(&self, other: &ExceptionDisposition) -> bool
fn eq(&self, other: &ExceptionDisposition) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ExceptionDisposition
Auto Trait Implementations§
impl Freeze for ExceptionDisposition
impl RefUnwindSafe for ExceptionDisposition
impl Send for ExceptionDisposition
impl Sync for ExceptionDisposition
impl Unpin for ExceptionDisposition
impl UnsafeUnpin for ExceptionDisposition
impl UnwindSafe for ExceptionDisposition
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