Runtime.Error

Prototypes

static void Error( String sMessage )

Parameters

String sMessage
The message to send to the program's error log.

Remarks

This method stops the IMLPlus program and sends the specified message to the program's error log. You can use this method to stop execution if your program detects an error condition. It is preferable to use this method instead of the ABORT, QUIT, or STOP statements because it sends a specific message to the error log and causes the program window's cursor to jump to the location of the error.

Example
start Divide( x, y );
    if y = 0 then
        Runtime.Error( "can't divide by zero!" );
    return (x / y);
finish;

z = Divide( 1, 0 );
print z;
See Also

Runtime.Warning