How do I use the exception system?

How do I use the exception system?

book

Article ID: KB0091425

calendar_today

Updated On:

Products Versions
TIBCO Adapter SDK -
Not Applicable -

Description

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.

Issue/Introduction

How do I use the exception system?

Environment

Product: TIBCO Adapter SDK Version: 5.3.0, 5.2.1, 5.4.0, 4.1.3, 5.0.x OS: All --------------------