Wraps execution and for any recoverable exception returns default value without crashing the whole process.

Syntax

<try>
    <body>
        try body
    </body>
    <catch>
        catch body
    </catch>
</try>

Example

<var-def name="reportText">
    <try>
        <body>
            <file path="data/report.txt"/>
        </body>
        <catch>
            No report file!
        </catch>
    </try>
</var-def>

File read exception is caught if occurred and default value is stored in the variable.