Generates an exception.

Syntax

THROW <exception oRef>

<exception oRef>

A reference to the Exception object you want to pass to the CATCH handler.

Description

Use THROW to manually generate an exception. THROW must pass a reference to an existing Exception object that describes the exception.