OWLNext    7.0
Borland's Object Windows Library for the modern age
Loading...
Searching...
No Matches
Specialized ObjectWindows Exception Classes

A number of regular ObjectWindows classes implement specialized exception classes, all of which are based on TXOwl that are defined within the implementing class definition to provide name scoping.

The following table describes these classes, along with the unique functionality of each class.

Exception ClassDescription
TXInvalidMainWindowInitializes the exception message with the IDS_INVALIDMAINWINDOW string resource. This object is thrown when the MainWindow member of TApplication contains either an invalid pointer or a pointer to an invalid window.
TXInvalidModuleInitializes the exception message with the IDS_INVALIDMODULE string resource. This exception is thrown in the TModule constructor when the module's HInstance is invalid.
TXWindowInitializes the exception message with the window title and with a string resource passed to the TXWindow constructor. This exception is thrown in situations where an error relating to a window object has occurred.
TXMenuInitializes the exception message with a string resource passed to the TXMenu constructor, by default, the IDS_GDIFAILURE string resource. This exception is thrown when a menu object's handle is invalid.
TXValidatorInitializes the exception message with a string resource passed to the TXValidator constructor. By default this is the IDS_VALIDATORSYNTAX string resource. This exception is thrown when a validator expression is corrupt or invalid.
TXGdiInitializes the exception message with a string resource passed to the TXGdi constructor, along with the GDI object handle. By default, the string resource is IDS_GDIFAILURE and the GDI object handle is 0 (zero). This exception is thrown in many situations when an error relating to a graphics object has occurred.
TXPrinterInitializes the exception message with a string resource passed to the TXPrinter constructor. By default this is the IDS_PRINTERERROR string resource. This exception is thrown when the printer's device context is invalid.
TXBadFormatInitializes the exception message with the IDS_BADFILEFORMAT string resource. This exception is thrown when an illegal file format is encountered.