OWLNext    7.0
Borland's Object Windows Library for the modern age
Loading...
Searching...
No Matches
owl::TXBase Class Reference

Derived from xmsg, TXBase is the base class for ObjectWindows and ObjectComponents exception-handling classes. More...

#include <owl/exbase.h>

Inheritance diagram for owl::TXBase:
ocf::TXAuto ocf::TXOle owl::TMRSWSection::TXLockFailure owl::TThread::TThreadError owl::TXOwl ocf::TXObjComp owl::TTransferBufferWindowBase::TXFieldConflict owl::TTransferBufferWindowBase::TXMeddlingValidator owl::TTransferBufferWindowBase::TXPolygamousControl owl::TTransferBufferWindowBase::TXUnboundControl owl::TXBadFormat owl::TXClipboard owl::TXCommCtrl owl::TXGdi owl::TXInvalidMainWindow owl::TXInvalidModule owl::TXMenu owl::TXModuleVersionInfo owl::TXNotSupportedCall owl::TXOutOfMemory owl::TXPrinter owl::TXPrinting owl::TXRegistry owl::TXShell owl::TXTheme owl::TXValidator owl::TXWindow

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 TXBaseClone ()
 Makes a copy of the exception object.
 
virtual void Throw ()
 Throws the exception object.
 
const charwhat () 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
 

Detailed Description

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.

Note
The function Clone() is deprecated, as it was needed only in 16-bit Windows

Definition at line 41 of file exbase.h.

Constructor & Destructor Documentation

◆ TXBase() [1/2]

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.

◆ TXBase() [2/2]

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.

◆ ~TXBase()

owl::TXBase::~TXBase ( )
virtual

Definition at line 132 of file exbase.cpp.

Member Function Documentation

◆ Clone()

◆ operator=()

TXBase & owl::TXBase::operator= ( const TXBase & src)

Definition at line 160 of file exbase.cpp.

References str.

◆ Raise()

void owl::TXBase::Raise ( const tstring & msg)
static

Constructs a TXBase exception from scratch, and throws it.

Definition at line 150 of file exbase.cpp.

References TXBase().

◆ Throw()

◆ what()

const char * owl::TXBase::what ( ) const
noexcept

Definition at line 155 of file exbase.cpp.

References str.

◆ why()

tstring owl::TXBase::why ( ) const

Definition at line 169 of file exbase.cpp.

References str.

Member Data Documentation

◆ str

std::string owl::TXBase::str
protected

Definition at line 59 of file exbase.h.


The documentation for this class was generated from the following files: