Error Messages > The IlvError Class
 
The IlvError Class
Rogue Wave® Views provides an error message mechanism based on the IlvError class. There is a default IlvError instance that is automatically installed for every Rogue Wave Views application.
This class implements warnings and fatal errors by simply printing out the message parameter. You can create subtypes of this class to perform more complex actions, and make Rogue Wave Views use them.
Two global functions get and set the current error handler:
extern "C" IlvError* IlvGetErrorHandler();
extern "C" void IlvSetErrorHandler(IlvError* errorHandler);
To make Rogue Wave Views call the error handler, send each error message through one of these global functions:
extern "C" void IlvWarning(const char* format, ...);
extern "C" void IlvFatalError(const char* format, ...);
The parameter format has the same format as the regular C function printf. The above two global functions expect their parameters in the same way as printf does.

Version 5.5.1
Copyright © 2012, Rogue Wave Software, Inc. All Rights Reserved.