Handling of OpenVSP ErrorObj information is accomplished through this group of API functions. Click here to return to the main page.
More...
◆ GetErrorLastCallFlag()
bool vsp::ErrorMgrSingleton::GetErrorLastCallFlag |
( |
| ) |
|
Check if there was an error on the last call to the API
Print( string( "---> Test Error Handling" ) );
bool GetErrorLastCallFlag()
double SetParmVal(const std::string &parm_id, double val)
- Returns
- False if no error, true otherwise
◆ GetLastError()
ErrorObj vsp::ErrorMgrSingleton::GetLastError |
( |
| ) |
|
Return the most recent error from the stack (does NOT pop error off the stack)
Print( "Creating an API error" );
SetParmVal(
"ABCDEFG",
"Test_Name",
"Test_Group", 123.4 );
- See also
- SilenceErrors, PrintOnErrors;
- Returns
- Error object
◆ GetNumTotalErrors()
int vsp::ErrorMgrSingleton::GetNumTotalErrors |
( |
| ) |
|
Count the total number of errors on the stack
Print( "Creating an API error" );
SetParmVal(
"ABCDEFG",
"Test_Name",
"Test_Group", 123.4 );
{
}
- Returns
- Number of errors
◆ PopLastError()
ErrorObj vsp::ErrorMgrSingleton::PopLastError |
( |
| ) |
|
Pop (remove) and return the most recent error from the stack. Note, errors are printed on occurrence by default.
Print( "Creating an API error" );
SetParmVal(
"ABCDEFG",
"Test_Name",
"Test_Group", 123.4 );
{
}
- Returns
- Error object
◆ PrintOnErrors()
void vsp::ErrorMgrSingleton::PrintOnErrors |
( |
| ) |
|
|
inline |
Cause errors to be printed to stdout as they occur.
Print( "Creating an API error" );
SetParmVal(
"ABCDEFG",
"Test_Name",
"Test_Group", 123.4 );
- See also
- SilenceErrors
Definition at line 374 of file APIErrorMgr.h.
◆ SilenceErrors()
void vsp::ErrorMgrSingleton::SilenceErrors |
( |
| ) |
|
|
inline |
Prevent errors from printing to stdout as they occur.
Print( "Creating an API error" );
SetParmVal(
"ABCDEFG",
"Test_Name",
"Test_Group", 123.4 );
- See also
- PrintOnErrors
Definition at line 339 of file APIErrorMgr.h.