Name
Throw Exception — Throws an exception
Usage
The throw exception pattern instructs the route processor to throw an exception.
The throw exception pattern can appear anywhere in the route body.
Properties
Table 4.13 describes the properties you can specify using the properties editor.
Table 4.13. Throw Exception Properties
Name | Description |
---|---|
Ref | Specifies a reference to the Spring bean defining the exception to be thrown. |
Id | Specifies a unique identifier for the endpoint. The Id can be used to refer to the endpoint in the Apache Camel configuration file. |
Description | Specifies a text description of the bean. The description is included in the generated XML file. |