Raise Statement

Causes a run-time error known as an exception.

Syntax

Raise [ expression ]

Parts

expression
Usually mandatory name of a class or an object reference that supplies information about the exception.
Optional when put in a block Catch of Try…Catch…Finally.

Instructions

Raise raises an exception that lets you move control to a block of code in Try…Catch…Finally. You can use Raise to prevent errors in your code which can cause crashes. ViviFire moves up the call stack until it finds the applicable exception handler.

Raise without an expression is permitted only in a code block of Catch. This raises the same exception again, to subsequently catch it with a different handler.

Examples

Raise Error("An exception occured")

See also