The methods of the connector class library indicate error
conditions in the following ways:
- Return codes--The connector class
library includes a set of defined outcome-status values that your
virtual methods can use to return information on the success or
failure of a method. The return codes are defined as integer values
and outcome-status constants. In your code,
IBM recommends use of the predefined constants to prevent a problem
if the IBM changes the values of the constants.
For information on C++ return codes, see C++ return codes.
- Return-status descriptor --during
request processing, the connector framework sends status
information back to the integration broker in a return-status
descriptor. The business object handler can save a message and
status code in this descriptor to provide the integration broker
about the status of the verb processing. For more information, see
Return-status
descriptor.
- Error and message logging--The connector
class library also provides the following features to assist in
providing notification of errors and noteworthy conditions:
- Logging allows you to send an informational or error message to
a log destination.
- Tracing allows you to include statements in your code that
generate trace messages at different trace levels.
For more information on how to implement logging and tracing,
see Message
logging.
