Resolution: The TIBCO Adapter SDK C++ has one exception class, MException. Each exception has a type that contains both the error code and a brief message. A bespoke adapter can use the standard try and catch mechanism to handle exceptions. As a rule, bespoke adapters create a subclass of MException for more explanatory error messages.
SDK Java API has a pre-defined subclass of MException using this concept. Please refer to SDK Java Programmer's Guide for more details.