Exit Try Statement

This statement terminates the execution of either a Try or a Catch block of instructions.

Exit Try

Prerequisites

Can only be specified within a Try or Catch block of instructions.  In particular, this instruction is illegal within a Finally block.

Remarks

If this statement is executed within a Try or a Catch block of instructions, statement execution immediately branches to the first statement in the Finally block or, if the Finally block is not defined, the first statement following the subsequent End Try.

Please see the documentation on the Try...Catch...Finally...End Try Statements for information on the general format of the exception handling structure.

See Also

Exception Handling | Try...Catch...Finally...End Try Statements