by Kevin Saul >> Mon, 9 Mar 2009 20:50:50 GMT
Hi All,
When referring to the "Handling Nested C++ Exceptions" section in the Object Manager documentation it provides the example shown below.
However, when I look at the Jade API header files provided, I cannot find jomGetExceptionUnwindState or JomException.
Can anyone shed any light on why these are missing?
Can anyone provide any examples on how exceptions should be caught in C++ in a similar manner?
While I realize there are functions for arming Jade exception handlers, I would like to simply handle an exception in C++ using a try/catch statement.
Cheers,
Kevin
Example from Jade documentation:
ClassA::~ClassA
{
try
{
int result= jomDeleteObject(...);
}
catch (JomException &e)
{
// the jomDeleteObject caused an exception
bool unwinding;
jomGetExceptionUnwindState(0, &unwinding, 0);
if (!unwinding) // it is safe to raise the exception
throw;
else
log("jomDeleteObject failed : exception type = %d" e.errorNumber);
endif;
}
};