Raytrix exception base class. All exceptions are based on this class {491260D2-0D75-4CCD-A2C5-46428B450B66}.
Use macro RX_DEFINE_EXCEPTION to define a new exception that is inherited by CRxException.
Use macro RX_THROW to throw the first exception. This exception hasn't an inner exception.
Use macro RX_RETHROW to throw a new exception that includes all previous exceptions.
Inherits Rx::Interop::Runtime30::CIException.
Inherited by Rx::ApiLF::CRxApiException, Rx::CRxErrnoException, Rx::CRxFileNotFoundException, Rx::CRxOperatingSystemException, and Rx::CRxOutOfMemoryException.
Public Member Functions | |
CRxException (CRxException &xEx) | |
Copy constructor. More... | |
virtual | ~CRxException () |
Destructor. Frees all inner exceptions. More... | |
void | CopyToHeap (CIException **ppTarget) |
Copy this exception to given target Destination. More... | |
virtual const char * | GetFile () const |
Gets the file name. More... | |
virtual const char * | GetFunction () const |
Gets the function name. More... | |
virtual const Interop::Runtime30::CGuid & | GetGUID () const |
Gets the unique identifier of this exception. More... | |
CIException * | GetInnerException () const |
Gets the inner exception. More... | |
virtual unsigned | GetLine () const |
Gets the line. More... | |
virtual const char * | GetMessageText () const |
Gets the information string. More... | |
virtual const char * | GetName () const |
Gets the name of this exception. More... | |
virtual bool | HasException (const Rx::Interop::Runtime30::CGuid &xGUID) const |
Query if this exception or one of its inner exceptions has the given GUID. More... | |
void | SetGUID (const Interop::Runtime30::CGuid &xGUID) |
Sets the unique identifier of this exception. More... | |
virtual const char * | ToString () const |
Convert this CRxException into a string representation. More... | |
Static Public Member Functions | |
static CRxException | Create (const CRxString &sInfo, const char *pcFile, const char *pcFunction, unsigned uLine, Interop::Runtime30::CIException &xInnerException) |
Constructor. More... | |
static CRxException | Create (const CRxString &sInfo, const char *pcFile, const char *pcFunction, unsigned uLine) |
Creates this CRxException. More... | |
static Interop::Runtime30::CGuid | GetTypeGUID () |
Gets the unique identifier of this type. More... | |
static const char * | GetTypeName () |
Gets the type name. More... | |
Protected Member Functions | |
CRxException (const CRxString &sInfo, const char *pcFile, const char *pcFunction, unsigned uLine, Interop::Runtime30::CIException *pxInnerException=0) | |
Constructor. More... | |
virtual Interop::Runtime30::CIException * | Copy () |
Copies this CRxException. More... | |
void | SetInnerException (CIException &xEx) |
Sets an inner exception. Frees currently assigned inner exception. More... | |
CIException * | YieldInnerException () |
Returns the inner exception and yields responsibility. More... | |
Protected Attributes | |
CRxString | m_sExceptionText |
The exception text. We need to hold this variable so that ToString() can return a valid const char*. More... | |
CRxString | m_sFile |
The name of the file in which this exception has been thrown. More... | |
CRxString | m_sFunction |
The function in which this exception has been thrown. More... | |
CRxString | m_sInfo |
The information describing the reason of this exception. More... | |
CRxString | m_sName |
The name of this exception. More... | |
unsigned | m_uLine |
The line in which this exception has been thrown. More... | |
Interop::Runtime30::CGuid | m_xGUID |
Unique identifier for this exception. More... | |
Rx::CRxException::CRxException | ( | CRxException & | xEx | ) |
Copy constructor.
xEx | [in] The exception to copy. |
|
protected |
Constructor.
sInfo | The information. |
pcFile | The file. |
pcFunction | The function. |
uLine | The line. |
pxInnerException | [in] (Optional) The inner exception. |
|
virtual |
Destructor. Frees all inner exceptions.
|
protectedvirtual |
Copies this CRxException.
Implements Rx::Interop::Runtime30::CIException.
Reimplemented in Rx::ApiLF::CRxApiException.
|
inherited |
Copy this exception to given target Destination.
ppTarget | [in,out] If non-null, target for the. |
|
static |
Constructor.
sInfo | The information. |
pcFile | The file. |
pcFunction | The function. |
uLine | The line. |
xInnerException | [in] The inner exception. |
|
static |
Creates this CRxException.
sInfo | The information. |
pcFile | The file. |
pcFunction | The function. |
uLine | The line. |
|
virtual |
|
virtual |
|
virtual |
Gets the unique identifier of this exception.
Implements Rx::Interop::Runtime30::CIException.
|
inherited |
Gets the inner exception.
|
virtual |
|
virtual |
Gets the information string.
Implements Rx::Interop::Runtime30::CIException.
|
virtual |
Gets the name of this exception.
Implements Rx::Interop::Runtime30::CIException.
|
static |
Gets the unique identifier of this type.
|
static |
Gets the type name.
|
virtual |
Query if this exception or one of its inner exceptions has the given GUID.
xGUID | [in] The GUID of the exception to look for. |
Implements Rx::Interop::Runtime30::CIException.
void Rx::CRxException::SetGUID | ( | const Interop::Runtime30::CGuid & | xGUID | ) |
Sets the unique identifier of this exception.
xGUID | The unique identifier. |
|
protectedinherited |
Sets an inner exception. Frees currently assigned inner exception.
xEx | [in] The inner exception. |
|
virtual |
Convert this CRxException into a string representation.
Implements Rx::Interop::Runtime30::CIException.
|
protectedinherited |
Returns the inner exception and yields responsibility.
|
protected |
The exception text. We need to hold this variable so that ToString() can return a valid const char*.
|
protected |
The name of the file in which this exception has been thrown.
|
protected |
The function in which this exception has been thrown.
|
protected |
The information describing the reason of this exception.
|
protected |
The name of this exception.
|
protected |
The line in which this exception has been thrown.
|
protected |
Unique identifier for this exception.