c:try

<c:try
  value? = expression
  rollback-output? = boolean >
  <!-- Content: (sequence-constructor, ((c:catch+, c:finally?) | c:finally)) -->
</c:try>

Recovers from exceptions or defines unconditional behavior.

Category
instruction
Permitted parent elements
Any XCST element whose content model is sequence-constructor
Any literal result element

Attributes

rollback-output Specifies whether to discard the output when an exception occurs.
value A value to output.

In addition to the attributes in the preceding table, there are a number of standard attributes that may appear on any XCST element.

Error Conditions

It is a compilation error if the value attribute is present when the content of the element (preceding any c:catch and c:finally elements) is non-empty.