warninglogat#

Purpose#

Prints a warning message to the window and warning log file, along with the file name and line number at which the warning occurred. The only difference between this and errorlogat() is that it will display a warning icon in the error output window.

Format#

warninglogat str
Parameters:

str (string) – the warning message to print.

Remarks#

This command enables you to do your own warning handling in your GAUSS programs.

To print a warning message to the warning window and warning log file without the file name and line number, use warninglog().

Example#

// Set X to be equal to +Infinity
X = __INFP;

// Check to see if X is an infinity, nan or missing value
if isinfnanmiss(X);
    // Write warning message
    warninglogat "X contains a nan, missing value or infinity";
endif;

The above example will print the message:

X contains a nan, missing value or infinity

to the warning output window and warning log file. It will also report the line number on which the warninglogat() statement was called.

See also

Functions warninglog(), errorlog(), errorlogat()