TIBCO Adapter SDK C++ Reference
|
throw MException( errorCode, MMessageBundle::getRole( errorCode ), MMessageBundle::getCategory( errorCode ), MMessageBundle::getMessage( errorCode ), __FILE__, __LINE__ );
You can take advantage of several macros to collapse this into a single line of code. Utility macros for throwing framework exceptions are defined in the MExceptions.h header file.
M_THROW_EXCEPTION( "AESDKC-0017" );
The MMessageBundle object should have been already filled with the relevant information.
Parameters | Description |
const MException& exception | An instance of the class MException. |
MException(const MException& exception);