try
statementList
catch variable
statementList
finally
statementList
end try
The try structure attempts to execute the following statements. If a script error is triggered, instead of interrupting the script, the statements under the catch clause, if specified, are executed. The text of the error message is stored in the specified variable. The statements under the finally clause, if specified, are always executed regardless of whether or not a script error is triggered.