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

OLE API related exception object. More...

#include <ocf/except.h>

Inheritance diagram for ocf::TXOle:
owl::TXBase ocf::TXObjComp

Public Member Functions

 TXOle (const owl::tstring &msg, HRESULT stat)
 
 TXOle (const TXOle &src)
 
 ~TXOle ()
 
TXOleClone ()
 
void Throw ()
 
- Public Member Functions inherited from 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.
 
 TXBase (const TXBase &src)
 Creates a copy of the TXBase object passed in the TXBase parameter.
 
virtual ~TXBase ()
 
const charwhat () const noexcept
 
TXBase &_RTLENTRY operator= (const TXBase &src)
 
tstring why () const
 

Static Public Member Functions

static void Check (HRESULT stat, LPCTSTR msg)
 
static void Check (HRESULT stat)
 
static void Throw (HRESULT stat, LPCTSTR msg)
 
static void OleErrorFromCode (HRESULT stat, TCHAR *buffer, int size)
 
- Static Public Member Functions inherited from owl::TXBase
static void Raise (const tstring &msg)
 Constructs a TXBase exception from scratch, and throws it.
 

Public Attributes

const long Stat
 

Additional Inherited Members

- Protected Attributes inherited from owl::TXBase
std::string str
 

Detailed Description

OLE API related exception object.

Definition at line 33 of file except.h.

Constructor & Destructor Documentation

◆ TXOle() [1/2]

ocf::TXOle::TXOle ( const owl::tstring & msg,
HRESULT stat )
inline

Definition at line 58 of file except.h.

◆ TXOle() [2/2]

ocf::TXOle::TXOle ( const TXOle & src)
inline

Definition at line 65 of file except.h.

◆ ~TXOle()

ocf::TXOle::~TXOle ( )

Definition at line 21 of file except.cpp.

Member Function Documentation

◆ Check() [1/2]

void ocf::TXOle::Check ( HRESULT stat)
static

Definition at line 57 of file except.cpp.

References Check().

◆ Check() [2/2]

void ocf::TXOle::Check ( HRESULT stat,
LPCTSTR msg )
static

Definition at line 47 of file except.cpp.

References Throw().

◆ Clone()

TXOle * ocf::TXOle::Clone ( )
virtual

Reimplemented from owl::TXBase.

Definition at line 29 of file except.cpp.

References TXOle().

◆ OleErrorFromCode()

void ocf::TXOle::OleErrorFromCode ( HRESULT stat,
TCHAR * buffer,
int size )
static

Definition at line 84 of file except.cpp.

References _tcslen, _tcsncpy, and owl::TSystemMessage::SysMessage().

◆ Throw() [1/2]

void ocf::TXOle::Throw ( )
virtual

Reimplemented from owl::TXBase.

Definition at line 38 of file except.cpp.

◆ Throw() [2/2]

void ocf::TXOle::Throw ( HRESULT stat,
LPCTSTR msg )
static

Definition at line 66 of file except.cpp.

References TXOle(), _T, _tcscat, _tcslen, HR_NOERROR, OleErrorFromCode(), and WARN.

Member Data Documentation

◆ Stat

const long ocf::TXOle::Stat

Definition at line 48 of file except.h.


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