pub enum CatchMatcher {
ByVariant(Vec<String>),
Predicate(FilterPredicate),
}Expand description
Matcher for a doCatch clause.
Variants§
ByVariant(Vec<String>)
Match by CamelError variant name (e.g. [“ProcessorError”, “Io”]).
"*" matches any variant — equivalent to Camel’s doCatch(Throwable.class).
Predicate(FilterPredicate)
Match by predicate over the Exchange.
Implementations§
Source§impl CatchMatcher
impl CatchMatcher
Sourcepub fn matches(&self, err: &CamelError, ex: &Exchange) -> bool
pub fn matches(&self, err: &CamelError, ex: &Exchange) -> bool
Returns true if this matcher matches the given error and exchange.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for CatchMatcher
impl !UnwindSafe for CatchMatcher
impl Freeze for CatchMatcher
impl Send for CatchMatcher
impl Sync for CatchMatcher
impl Unpin for CatchMatcher
impl UnsafeUnpin for CatchMatcher
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