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§
Source§impl Clone for CatchMatcher
impl Clone for CatchMatcher
Source§fn clone(&self) -> CatchMatcher
fn clone(&self) -> CatchMatcher
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 moreAuto 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