Raise

From REAL Software Documentation

Jump to: navigation, search
Method


The Raise statement is used to raise an exception to the next level in the calling chain.


Syntax

Raise expression

Expression must evaluate to an object that is a subclass of RuntimeException — and will be the object that is passed to any exception handlers.

Examples

Here are example of how to raise an exception

Raise New RuntimeException


or

Dim r as RuntimeException
r=New RuntimeException
r.ErrorNumber=-1
r.Message="my error message"
Raise r


See Also

Function statement; RuntimeException class; Exception, Try statements.

Personal tools