<catch> catch exceptions from the previous block

name
catch
xml namespace
http://moyaproject.com

Catches any exceptions from the previous block.

Example

<try>
    <echo>${1/0}</echo>  <!-- will throw a math exception -->
</try>
<catch exception="math.divistion-error">
    <echo>The try block threw an exception</echo>
</catch>

<!-- A <try> block is only necessary if there are multiple statements you want to catch exceptions for -->
<echo>${1/0}<echo>
<catch exception="math.division-error">
    <echo>You can't divide by zero!</echo>
</catch>
attributes
name purpose type required? default choices
dst Destination to store exception object reference No
exception Type of exception to catch comma list No *
inherited attributes
name purpose type required? default choices
if Conditional expression expression No yes