Control Structures

throw

Supported By

Syntax

throw errorMessage

ErrorMessage yields any string.

Description

The throw statement triggers a script error with the specified error message.

See Also

try