<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>
</try>
<catch exception="math.divistion-error">
<echo>The try block threw an exception</echo>
</catch>
<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 |
|