OWLNext 7.0
Borland's Object Windows Library for the modern age
|
Derived from xmsg, TXBase is the base class for ObjectWindows and ObjectComponents exception-handling classes. More...
#include <owl/exbase.h>
Public Member Functions | |
TXBase (const tstring &msg) | |
Calls the xmsg class's constructor that takes a string parameter and initializes xmsg with the value of the string parameter. | |
TXBase (const TXBase &src) | |
Creates a copy of the TXBase object passed in the TXBase parameter. | |
virtual | ~TXBase () |
virtual TXBase * | Clone () |
Makes a copy of the exception object. | |
virtual void | Throw () |
Throws the exception object. | |
const char * | what () const noexcept |
TXBase &_RTLENTRY | operator= (const TXBase &src) |
tstring | why () const |
Static Public Member Functions | |
static void | Raise (const tstring &msg) |
Constructs a TXBase exception from scratch, and throws it. | |
Protected Attributes | |
std::string | str |
Derived from xmsg, TXBase is the base class for ObjectWindows and ObjectComponents exception-handling classes.
The ObjectWindows classes that handle specific kinds of exceptions, such as out-of-memory or invalid window exceptions, are derived from TXOwl, which is in turn derived from TXBase. The ObjectComponents classes TXOle and TXAuto are derived directly from TXBase.
TXBase contains the function Throw(), which is overridden in all derived classes, as well as two constructors.
owl::TXBase::TXBase | ( | const tstring & | msg | ) |
Calls the xmsg class's constructor that takes a string parameter and initializes xmsg with the value of the string parameter.
Definition at line 121 of file exbase.cpp.
owl::TXBase::TXBase | ( | const TXBase & | src | ) |
Creates a copy of the TXBase object passed in the TXBase parameter.
Definition at line 128 of file exbase.cpp.
|
virtual |
Definition at line 132 of file exbase.cpp.
|
virtual |
Makes a copy of the exception object.
Reimplemented in ocf::TXOle, ocf::TXObjComp, owl::TXInvalidMainWindow, owl::TXClipboard, owl::TXCommCtrl, owl::TXOwl, owl::TXOutOfMemory, owl::TXNotSupportedCall, owl::TXBadFormat, owl::TXGdi, owl::TXMenu, owl::TXInvalidModule, owl::TXModuleVersionInfo, owl::TXPrinter, owl::TXShell, owl::TXTheme, owl::TXValidator, and owl::TXWindow.
Definition at line 136 of file exbase.cpp.
References TXBase().
Definition at line 160 of file exbase.cpp.
References str.
Constructs a TXBase exception from scratch, and throws it.
Definition at line 150 of file exbase.cpp.
References TXBase().
|
virtual |
Throws the exception object.
Reimplemented in ocf::TXAuto, ocf::TXOle, ocf::TXObjComp, owl::TXInvalidMainWindow, owl::TXClipboard, owl::TXCommCtrl, owl::TXOwl, owl::TXOutOfMemory, owl::TXNotSupportedCall, owl::TXBadFormat, owl::TXGdi, owl::TXMenu, owl::TXInvalidModule, owl::TXModuleVersionInfo, owl::TXPrinter, owl::TXPrinting, owl::TXShell, owl::TXTheme, owl::TXValidator, and owl::TXWindow.
Definition at line 142 of file exbase.cpp.
|
noexcept |
Definition at line 155 of file exbase.cpp.
References str.
tstring owl::TXBase::why | ( | ) | const |
Definition at line 169 of file exbase.cpp.
References str.