cTry
Offers the Java equivalent exception handling abilities by building Try/Catch/Finally blocks to isolate the part of your Route likely to generate an error, catch the errors, and execute final instructions regardless of the errors.
For more information, see the Apache camel documentation https://camel.apache.org/components/latest/.
cTry Standard properties
These properties are used to configure cTry running in the Standard Job framework.
The Standard cTry component belongs to the Exception Handling family.
Usage
Usage rule |
cTry is used as a middle component in a Route. |
Connections |
Try: Select this link to isolate the part of your Route that is likely to throw an exception or exceptions. Information noteNote:
When the Try link is followed by multiple components, a compile error may occur showing "The method doCatch() is undefined for the type ExpressionNode". In this case, use a cJavaDSLProcessor component to end the Try block with the code .endDoTry() as a workaround. |
Catch: Select this link to catch any exception thrown in the Route. In the Exceptions field, type in an expression to filter the type of exception to catch. Information noteNote: This link can be used only when a Try link is present.
|
|
Finally: Select link to execute final instructions regardless of any exceptions that may occur in the Route. Information noteNote: This link can be used only when a Try link is present.
|
|
Route: Select this link to route all the messages from the sender to the next endpoint. | |
Limitation |
n/a |