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 |
MString const & rsCode | Error message code. |
MString const & rsSeverityRole | The corresponding role for this errorCode. Predefine roles are debugRole, errorRole, warnRole, infoRole |
MString const & rsCategory |
Category of the message. The standard categories are Database, Configuration, TibRvComm, JMSComm, Application. : |
MString const & rsDescription | Descriptive text for this exception. |