# 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);

## 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.

This call is not supported in COBOL.

## See Also

`tibemsConnection_SetExceptionListener`

`Asynchronous Errors`.

`tibemsExceptionCallback`

Copyright © Cloud Software Group, Inc. All rights reserved.