Handling of OpenVSP ErrorObj information is accomplished through this group of API functions. Click here to return to the main page. More...
Classes | |
class | vsp::ErrorObj |
class vsp::ErrorObj |
ErrorObj is defined by an error code enum and associated error string.
Definition at line 44 of file APIErrorMgr.h.
Public Member Functions | |
ErrorObj (ERROR_CODE err_code, const string &err_str) | |
ErrorObj (const ErrorObj &from) | |
ERROR_CODE | GetErrorCode () |
string | GetErrorString () |
void | NoError () |
Public Attributes | |
ERROR_CODE | m_ErrorCode |
string | m_ErrorString |
|
inline |
Definition at line 50 of file APIErrorMgr.h.
|
inline |
Definition at line 117 of file APIErrorMgr.h.
ERROR_CODE vsp::ErrorObj::m_ErrorCode |
Definition at line 114 of file APIErrorMgr.h.
string vsp::ErrorObj::m_ErrorString |
Definition at line 115 of file APIErrorMgr.h.
|
inline |
Get the ERROR_CODE enum of the last raised error
Definition at line 76 of file APIErrorMgr.h.
bool vsp::ErrorMgrSingleton::GetErrorLastCallFlag | ( | ) |
Check if there was an error on the last call to the API
|
inline |
Get the error string of the last raised error
Definition at line 108 of file APIErrorMgr.h.
ErrorObj vsp::ErrorMgrSingleton::GetLastError | ( | ) |
Return the most recent error from the stack (does NOT pop error off the stack)
int vsp::ErrorMgrSingleton::GetNumTotalErrors | ( | ) |
Count the total number of errors on the stack
ErrorObj vsp::ErrorMgrSingleton::PopLastError | ( | ) |
Pop (remove) and return the most recent error from the stack. Note, errors are printed on occurrence by default.
|
inline |
Cause errors to be printed to stdout as they occur.
Definition at line 383 of file APIErrorMgr.h.
|
inline |
Prevent errors from printing to stdout as they occur.
Definition at line 348 of file APIErrorMgr.h.