endtry

Defines the end of a try...endtry block used to handle exceptions.

try
    <ProcScript that may throw an exception>
{catch} {ErrorNumber1 {, ErrorNumberN}}
    <Procscript that handles the error >}
{rethrow}
{finally}
     <ProcScript that will always execute, regardless of whether an error occurred or not>
endtry

Use

Allowed in all component types.

Description

For each try declaration, it is possible to have multiple catch statements to test for specific errors, as well as a rethrow statement, and/or a finally block. The endtry command must come at the end.

For more information, see try.

Related Topics