tibemsConnection_GetExceptionListener

Function

Purpose

Get the exception listener of a connection.

C Declaration

tibems_status tibemsConnection_GetExceptionListener(
    tibemsConnection connection,
    tibemsExceptionCallback* listener,
    void** closure );

Parameters

Parameter Description
connection Get the exception listener of this connection.
listener Store a pointer to the exception listener callback in this location.
closure Store a pointer to the exception listener closure argument in this location.

Remarks

This is an alternate pathway for alerting a client program of connection problems. The program defines an exception listener callback function, and registers the callback using tibemsConnection_SetExceptionListener. When the client library detects a connection problem, it calls the callback with an exception argument that details the problem.

This call is not available in COBOL.