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

Base OC exception class. More...

#include <ocf/except.h>

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

Public Types

enum  TError {
  xNoError , xBOleLoadFail , xBOleVersFail , xBOleBindFail , xDocFactoryFail , xMissingRootIStorage , xInternalPartError , xPartInitError , xRootStorageOpenError , xStorageOpenError ,
  xStorageILockError , xStreamOpenError
}
 

Public Member Functions

 TXObjComp (TError err, const owl::tstring &msg, HRESULT stat=HR_FAIL)
 
 TXObjComp (const TXObjComp &src)
 
 ~TXObjComp ()
 
TXObjCompClone ()
 
void Throw ()
 
- Public Member Functions inherited from ocf::TXOle
 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, TError err, LPCTSTR msg=0)
 
static void Throw (TError err, HRESULT stat=HR_FAIL, LPCTSTR msg=0)
 
- Static Public Member Functions inherited from ocf::TXOle
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 TError ErrorCode
 
- Public Attributes inherited from ocf::TXOle
const long Stat
 

Additional Inherited Members

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

Detailed Description

Base OC exception class.

Definition at line 90 of file except.h.

Member Enumeration Documentation

◆ TError

Enumerator
xNoError 
xBOleLoadFail 
xBOleVersFail 
xBOleBindFail 
xDocFactoryFail 
xMissingRootIStorage 
xInternalPartError 
xPartInitError 
xRootStorageOpenError 
xStorageOpenError 
xStorageILockError 
xStreamOpenError 

Definition at line 92 of file except.h.

Constructor & Destructor Documentation

◆ TXObjComp() [1/2]

ocf::TXObjComp::TXObjComp ( TError err,
const owl::tstring & msg,
HRESULT stat = HR_FAIL )
inline

Definition at line 116 of file except.h.

◆ TXObjComp() [2/2]

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

Definition at line 118 of file except.h.

◆ ~TXObjComp()

ocf::TXObjComp::~TXObjComp ( )

Definition at line 43 of file ocstorag.cpp.

Member Function Documentation

◆ Check()

void ocf::TXObjComp::Check ( HRESULT stat,
TError err,
LPCTSTR msg = 0 )
static

Definition at line 58 of file ocstorag.cpp.

References Throw().

◆ Clone()

TXObjComp * ocf::TXObjComp::Clone ( )
virtual

Reimplemented from owl::TXBase.

Definition at line 48 of file ocstorag.cpp.

References TXObjComp().

◆ Throw() [1/2]

void ocf::TXObjComp::Throw ( )
virtual

Reimplemented from owl::TXBase.

Definition at line 53 of file ocstorag.cpp.

◆ Throw() [2/2]

void ocf::TXObjComp::Throw ( TError err,
HRESULT stat = HR_FAIL,
LPCTSTR msg = 0 )
static

Definition at line 79 of file ocstorag.cpp.

References TXObjComp(), _T, _tcscat, _tcslen, HR_FAIL, HR_NOERROR, ocf::TXOle::OleErrorFromCode(), and WARNX.

Member Data Documentation

◆ ErrorCode

const TError ocf::TXObjComp::ErrorCode

Definition at line 128 of file except.h.


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