# 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 guidance | Description |
| --- | --- |
| **Usage rule** | cTry is used as a middle component in a<br>Route. |
| Connections | <ul> <li> <p> <span>Try</span>: Select this link to isolate the part                     of your Route that is likely to throw an exception or exceptions.</p> <div><span>Information note</span><span>Note:</span> <p>When the <span>Try</span> link is followed by multiple components,                        a compile error may occur showing <span>"The method doCatch() is undefined                           for the type ExpressionNode"</span>. In this case, use a                           <span>cJavaDSLProcessor</span> component to end the Try block                        with the code <span>.endDoTry()</span> as a workaround.</p> </div> </li> <li> <p> <span>Catch</span>: Select this link to catch any                     exception thrown in the Route.</p> <p>In the <span>Exceptions</span> field,                     type in an expression to filter the type of exception to catch. </p> <div><span>Information note</span><span>Note:</span> This link can be used only when a Try link is present.</div> </li> <li> <p> <span>Finally</span>: Select link to execute final                     instructions regardless of any exceptions that may occur in the Route.</p> <div><span>Information note</span><span>Note:</span> This link can be used only when a Try link is present.</div> </li> <li> <span>Route</span>: Select this link to route all the messages                  from the sender to the next endpoint.</li> </ul> |
| Limitation | n/a |

**Related concepts**

* [Using cTry to build Try/Catch/Finally blocks for exception handling](https://help.qlik.com/talend/en-US/mediation-components/8.0/mediation-logs-and-errors/ctry-cprocessor-cfile-cfile-using-ctry-to-build-try-catch-finally-blocks-for-exception-handling)