Skip to main content

Module do_try

Module do_try 

Source
Expand description

Builder types for the doTry / doCatch / doFinally EIP pattern.

These builders provide a fluent API for constructing doTry scopes within a Camel route. Example:

RouteBuilder::from("direct:start")
    .do_try()
        .process(try_step)
        .do_catch_exception(&["SomeError"])
            .process(catch_step)
        .end_do_catch()
    .end_do_try()

Structs§

DoCatchBuilder
Builder for a .do_catch_exception() / .do_catch_when() / .do_catch_all() clause.
DoFinallyBuilder
Builder for a .do_finally().end_do_finally() block.
DoTryBuilder
Builder for a .do_try().end_do_try() block.