Raytrix exception base class. All exceptions are based on this class.
Inherits Rx::Interop::Runtime31::IException.
Inherited by Rx::CRxCalibrationDatabaseMissingException, Rx::CRxErrnoException, Rx::CRxFileNotFoundException, Rx::CRxInsufficientMemoryException, Rx::CRxInvalidLensTypeCountException, Rx::CRxInvalidPlenopticTypeException, Rx::CRxOperatingSystemException, and Rx::CRxOutOfMemoryException.
|
| CRxException (const CRxString &sxMsg, const char *pcFile, const char *pcFunc, int iLine) |
| Constructor. More...
|
|
| CRxException (const CRxString &sxMsg, const char *pcFile, const char *pcFunc, int iLine, const IException30 &ex) |
| Constructor. More...
|
|
| CRxException (const CRxString &sxMsg, const char *pcFile, const char *pcFunc, int iLine, const IException31 &ex) |
| Constructor. More...
|
|
virtual | ~CRxException () |
| Virtual destructor. More...
|
|
virtual IException * | Clone () const =0 |
| Makes a deep copy of this object. More...
|
|
virtual const char * | GetFile () const |
| Gets the file name. More...
|
|
virtual const char * | GetFunction () const |
| Gets the function name. More...
|
|
virtual const CGuid30 & | GetGUID () const |
| Gets the unique identifier of this exception. This is not guaranteed to be the GUID of this exception type. More...
|
|
virtual const IException31 * | GetInnerException () const |
| Gets the inner exception if one is available. Otherwise nullptr is returned. More...
|
|
virtual int | GetLine () const |
| Gets the line. More...
|
|
virtual const char * | GetMessageText () const |
| Gets message text. More...
|
|
const IException31 * | GetMostInnerException () const |
| Gets the most inner exception. More...
|
|
virtual const char * | GetName () const |
| Gets the name of this exception. More...
|
|
template<class TException > |
bool | HasException () const |
| Query if this exception or one of its inner exceptions contains an exception of the given type. More...
|
|
virtual bool | HasException (const CGuid30 &xGUID) const |
| Query if this exception or one of its inner exceptions contains an exception of the given GUID. More...
|
|
| RX_EXCEPTION_BASE_IMPLEMENTATION (CRxException, "Rx.RxException", "{491260D2-0D75-4CCD-A2C5-46428B450B66}") |
|
virtual void | SetExceptionData () |
| Sets additional exception data. More...
|
|
void | SetGUID (const CGuid30 &xGUID) |
| Sets the GUID of this exception. This is not guaranteed to be the GUID of this exception type. More...
|
|
void | SetInnerException (const IException31 &ex) |
| Sets the given exception as the inner exception. More...
|
|
virtual CRxString | ToString () const |
| Convert this exception into a string representation. More...
|
|
CRxString | ToString (bool bIncludeInner) const |
| Convert this exception into a string representation. More...
|
|
◆ CRxException() [1/3]
Rx::CRxException::CRxException |
( |
const CRxString & |
sxMsg, |
|
|
const char * |
pcFile, |
|
|
const char * |
pcFunc, |
|
|
int |
iLine |
|
) |
| |
Constructor.
- Parameters
-
sxMsg | The message string. |
pcFile | The file. |
pcFunc | The function. |
iLine | The line. |
◆ CRxException() [2/3]
Rx::CRxException::CRxException |
( |
const CRxString & |
sxMsg, |
|
|
const char * |
pcFile, |
|
|
const char * |
pcFunc, |
|
|
int |
iLine, |
|
|
const IException30 & |
ex |
|
) |
| |
Constructor.
- Parameters
-
sxMsg | The message string. |
pcFile | The file. |
pcFunc | The function. |
iLine | The line. |
ex | The inner exception. |
◆ CRxException() [3/3]
Rx::CRxException::CRxException |
( |
const CRxString & |
sxMsg, |
|
|
const char * |
pcFile, |
|
|
const char * |
pcFunc, |
|
|
int |
iLine, |
|
|
const IException31 & |
ex |
|
) |
| |
Constructor.
- Parameters
-
sxMsg | The message string. |
pcFile | The file. |
pcFunc | The function. |
iLine | The line. |
ex | The inner exception. |
◆ ~CRxException()
virtual Rx::CRxException::~CRxException |
( |
| ) |
|
|
inlinevirtual |
◆ Clone()
virtual IException* Rx::Interop::Runtime31::IException::Clone |
( |
| ) |
const |
|
pure virtualinherited |
Makes a deep copy of this object.
- Returns
- Null if it fails, else a copy of this object.
◆ GetFile()
virtual const char* Rx::CRxException::GetFile |
( |
| ) |
const |
|
virtual |
◆ GetFunction()
virtual const char* Rx::CRxException::GetFunction |
( |
| ) |
const |
|
virtual |
◆ GetGUID()
virtual const CGuid30& Rx::CRxException::GetGUID |
( |
| ) |
const |
|
virtual |
Gets the unique identifier of this exception. This is not guaranteed to be the GUID of this exception type.
- Returns
- The unique identifier.
Implements Rx::Interop::Runtime31::IException.
◆ GetInnerException()
virtual const IException31* Rx::CRxException::GetInnerException |
( |
| ) |
const |
|
virtual |
◆ GetLine()
virtual int Rx::CRxException::GetLine |
( |
| ) |
const |
|
virtual |
◆ GetMessageText()
virtual const char* Rx::CRxException::GetMessageText |
( |
| ) |
const |
|
virtual |
◆ GetMostInnerException()
const IException31* Rx::CRxException::GetMostInnerException |
( |
| ) |
const |
Gets the most inner exception.
- Returns
- The most inner exception. If there is no inner exception, this exception is returned.
◆ GetName()
virtual const char* Rx::CRxException::GetName |
( |
| ) |
const |
|
virtual |
◆ HasException() [1/2]
template<class TException >
bool Rx::CRxException::HasException |
( |
| ) |
const |
|
inline |
Query if this exception or one of its inner exceptions contains an exception of the given type.
- Template Parameters
-
TException | The exception type to test for. |
- Returns
- True if this exception or one of its inner exceptions contains an exception of the given type, false if not.
◆ HasException() [2/2]
virtual bool Rx::CRxException::HasException |
( |
const CGuid30 & |
xGUID | ) |
const |
|
virtual |
Query if this exception or one of its inner exceptions contains an exception of the given GUID.
- Parameters
-
xGUID | [in] The GUID of the exception to look for. |
- Returns
- True if this exception or one of its inner exceptions contains an exception of the given GUID, false if not.
Implements Rx::Interop::Runtime31::IException.
◆ RX_EXCEPTION_BASE_IMPLEMENTATION()
Rx::CRxException::RX_EXCEPTION_BASE_IMPLEMENTATION |
( |
CRxException |
, |
|
|
"Rx.RxException" |
, |
|
|
"{491260D2-0D75-4CCD-A2C5-46428B450B66}" |
|
|
) |
| |
◆ SetExceptionData()
virtual void Rx::CRxException::SetExceptionData |
( |
| ) |
|
|
virtual |
Sets additional exception data.
◆ SetGUID()
void Rx::CRxException::SetGUID |
( |
const CGuid30 & |
xGUID | ) |
|
|
inline |
Sets the GUID of this exception. This is not guaranteed to be the GUID of this exception type.
- Parameters
-
◆ SetInnerException()
void Rx::CRxException::SetInnerException |
( |
const IException31 & |
ex | ) |
|
|
inline |
Sets the given exception as the inner exception.
- Parameters
-
◆ ToString() [1/2]
virtual CRxString Rx::CRxException::ToString |
( |
| ) |
const |
|
virtual |
Convert this exception into a string representation.
- Returns
- This exception as a string.
◆ ToString() [2/2]
CRxString Rx::CRxException::ToString |
( |
bool |
bIncludeInner | ) |
const |
Convert this exception into a string representation.
- Parameters
-
bIncludeInner | True to include all inner exceptions. |
- Returns
- This exception as a string.
◆ m_sxMessage
◆ m_sxName
◆ m_xGUID
◆ m_xInnerException
◆ m_xLocation