Copyright © TIBCO Software Inc. All Rights Reserved

> tibemsAdmin_SetExceptionListener
> Function
> Purpose
> Set an exception listener for the connection used by the administration API to communicate with the EMS server.
> C Declaration
> tibems_status tibemsAdmin_SetExceptionListener(
> tibemsAdmin admin,
> tibemsExceptionCallback listener,
> const void* closure);
> COBOL Call
> CALL "tibemsAdmin_SetExceptionListener_STL"
> USING BY VALUE admin,
> BY REFERENCE tibems-AdminException-Status,
> BY VALUE TIBEMS-NULLPTR,
> RETURNING tibems-status
> END-CALL.
> Parameters

> Parameter | Description
> admin | Resister the exception listener callback on this administration connection.
> listener | Register this exception listener callback. For more information about exception listeners, see the TIBCO Enterprise Message Service User’s Guide.
> closure | Register this closure argument.

> Remarks
> This is an alternate pathway for alerting a client program of connection problems. The program defines an exception listener callback function, and calls this function to register the callback and a closure argument. When the client library detects a connection problem, it calls the callback with a status code that identifies the problem.
> See Also
> tibemsConnection_SetExceptionListener on page 215
> Asynchronous Errors.
> tibemsExceptionCallback on page 225

Copyright © TIBCO Software Inc. All Rights Reserved