Catch — Catches exceptions as part of a try, catch, finally block
The Catch pattern specifies a series of steps to take when the specified exception is thrown.
The Catch pattern can only occur following a try pattern. It must be followed by either a processor or an endpoint.
Table 32 describes the properties you can specify using the properties editor.
Table 32. Catch Properties
Name | Description |
---|---|
Handled | Specifies an expression that determines if the exception is marked as
handled. The expression returns a boolean. If the expression evaluates to
any non-boolean value other than null it is evaluated as returning
true . |
language | Specifies the expression language used to process the expression. |
Inherit Error Handler | Specifies whether the node should use the error handler configured for the route.
The default is Disabled . |
Exceptions | Specifies the list of exceptions caught. The | button adds an entry typed in the field. The button removes the selected entry from the list.
Id | Specifies a unique identifier for the endpoint. The Id can be used to refer to the endpoint in the Camel XML configuration file. |
Description | Specifies a text description for the node. This description is included in the generated XML file, but it is informational only. It is not used by Apache Camel. |