A factory class to raise Impact Acquire related exceptions.
More...
#include <mvIMPACT_acquire.h>
|
static std::string | getLastErrorString (void) |
| Returns the last error string that did occur inside the framework within the current thread.
|
|
static void | raiseException (const char *pFunctionName, int lineNumber, int errorCode, HOBJ objectHandle=INVALID_ID) |
| Raises an exception from an error code, its origin in terms of the function name and the line number the error did occur and an optional component handle.
|
|
static void | raiseException (const char *pFunctionName, int lineNumber, TDMR_ERROR errorCode, const std::string &msg) |
| Raises an exception from an error code, its origin in terms of the function name and the line number the error did occur and an exception string.
|
|
A factory class to raise Impact Acquire related exceptions.
This class contains a collection of static member functions that are used inside the interface to raise the appropriate exception in case of an error
◆ getLastErrorString()
static std::string getLastErrorString |
( |
void | | ) |
|
|
inlinestatic |
Returns the last error string that did occur inside the framework within the current thread.
- Returns
- The last error string that did occur inside the framework within the current thread.
◆ raiseException() [1/2]
void raiseException |
( |
const char * | pFunctionName, |
|
|
int | lineNumber, |
|
|
int | errorCode, |
|
|
HOBJ | objectHandle = INVALID_ID ) |
|
inlinestatic |
Raises an exception from an error code, its origin in terms of the function name and the line number the error did occur and an optional component handle.
- Parameters
-
[in] | pFunctionName | The name of the function this exception was raised from. |
[in] | lineNumber | The line number in the source this exception was raised from. |
[in] | errorCode | The error code. |
[in] | objectHandle | A handle to an object. |
◆ raiseException() [2/2]
static void raiseException |
( |
const char * | pFunctionName, |
|
|
int | lineNumber, |
|
|
TDMR_ERROR | errorCode, |
|
|
const std::string & | msg ) |
|
inlinestatic |
Raises an exception from an error code, its origin in terms of the function name and the line number the error did occur and an exception string.
- Parameters
-
[in] | pFunctionName | The name of the function this exception was raised from. |
[in] | lineNumber | The line number in the source this exception was raised from. |
[in] | errorCode | The error code. |
[in] | msg | The actual exception text. |