_pyCheckAndGetExceptionMessage#

Fully qualified name: usd_optimize::_pyCheckAndGetExceptionMessage

bool usd_optimize::_pyCheckAndGetExceptionMessage(
std::string &message,
)#

Checks if a Python exception has been raised and, if so, returns the message and stacktrace of the python exception.

Note

This clears the raised Python exception.

Parameters:

message – Returns the message of the python exception if one has occurred.

Returns:

True if a Python exception has occurred, false otherwise.