Container for an Interop::Runtime31::IException pointer that simplifies copying of exceptions.
◆ CExceptionSafePointer() [1/5]
Rx::CExceptionSafePointer::CExceptionSafePointer |
( |
| ) |
|
◆ CExceptionSafePointer() [2/5]
Copy constructor. Creates a copy of the exception provided by the given pointer.
- Parameters
-
xExceptionSafePointer | The exception safe pointer to copy. |
◆ CExceptionSafePointer() [3/5]
Move constructor.
- Parameters
-
xExceptionSafePointer | [in,out] The exception safe pointer to move. |
◆ CExceptionSafePointer() [4/5]
Rx::CExceptionSafePointer::CExceptionSafePointer |
( |
const IException30 & |
ex | ) |
|
Copy Constructor. Creates a copy of the given exception.
- Parameters
-
◆ CExceptionSafePointer() [5/5]
Rx::CExceptionSafePointer::CExceptionSafePointer |
( |
const IException31 & |
ex | ) |
|
Copy Constructor. Creates a copy of the given exception.
- Parameters
-
◆ ~CExceptionSafePointer()
Rx::CExceptionSafePointer::~CExceptionSafePointer |
( |
| ) |
|
Destructor. Deletes the assigned exception.
◆ Get() [1/2]
const IException31* Rx::CExceptionSafePointer::Get |
( |
| ) |
const |
Gets the exception pointer.
- Returns
- Null if it fails, else the exception pointer.
◆ Get() [2/2]
template<typename TException >
const TException* Rx::CExceptionSafePointer::Get |
( |
| ) |
const |
|
inline |
Gets the exception pointer dynamically casted to the given template argument.
- Template Parameters
-
TException | Type of the exception. |
- Returns
- Null if it fails, else the exception pointer.
◆ IsValid()
bool Rx::CExceptionSafePointer::IsValid |
( |
| ) |
const |
Query if this object is valid.
- Returns
- True if valid, false if not.
◆ operator=()
Move assignment operator.
- Parameters
-
xExceptionSafePointer | [in,out] The exception safe pointer to move. |
- Returns
- A moved version of the given pointer.