throw

Examples


The throw statement is used to throw a user exception or to rethrow the current exception.

Syntax

throw {class, subclass, message}

Parameters

class – A long integer specifying the class of the user exception. This value should be 1 or greater. For integrating applications it should be 22,000 or greater.

subclass – A long integer specifying the subclass of the user exception.

message – A string specifying the message that describes the user exception. You can use the following string constants in the message to indicate where the exception occurred.

[spacer]

Constant

Description

_script_

The name of the script in which the exception was generated.

_line_

The line number in the script where the exception was generated.


Comments

If your exception handler has received an exception not intended for it, use the throw statement without any parameters to rethrow the exception.


Documentation Feedback