Anvil | Smiths Smiths | Register Register | Login Login |
Search:
Show links Show tools Show tree | Previous document Next document | njet.org > Anvil > Documentation > Language reference > Statements > Compound statements > Try

Try

Try statement evalutes contained statement. If during an evaluation an exception is thrown and there is a ``catch´´, its contained statement is evaluated.

After that, if there is an ``finally´´, its contained statement is evaluted, whether or not there was an exception.

Catch and finally may also appear without try statement.

  try := "try" statement [ catch ] [ finally ] 
See also  | Statements  | Compound statements  | Catch  | Finally  | Grammar
Contributes notes:
Add a note
What's new | Anvil