TIBCO Adapter SDK C++ Reference
MException::MException
MException
Creates an instance of this exception.
Remarks
A typical construction would look like this:

    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
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.
MString const & rsSourceFileName Name of the C++ file at which this exception originated.
unsigned long ulSourceFileLineNumber Line number in the source file at which this exception originated.
Declaration
MException(MString const & rsCode, MString const & rsSeverityRole, MString const & rsCategory, MString const & rsDescription, MString const & rsSourceFileName, unsigned long ulSourceFileLineNumber);
Links
Copyright (c) 2010 TIBCO Software Inc. All rights reserved.