Collapse All Expand All

.NET Framework Class Library
Connection Class See Also

[TIBCO.EMS .NET client library 5.1 documentation]

Get and set the exception event listener

Namespace: TIBCO.EMS
Assembly: TIBCO.EMS (in TIBCO.EMS.dll)

# Syntax

    public IExceptionListener ExceptionListener { get; set; }

    Public Property ExceptionListener As IExceptionListener

    public:
    property IExceptionListener^ ExceptionListener {
    	IExceptionListener^ get ();
    	void set (IExceptionListener^ value);
    }

# Remarks

This is an alternate pathway for alerting a client program of connection problems. The program implements the exception listener interface, and registers an exception listener object by setting this property. When the client library detects a connection problem, it calls the listener’s onException method with an exception argument that details the problem.

Note:: Use either ExceptionHandler or ExceptionListener to handle exceptions, but not both. Setting up both will cause the exception to be handled more than once which can result in undefined behavior.

# Exceptions

Exception | Condition
--- | ---
TIBCO.EMS..::.IllegalStateException | If the connection is closed

# See Also

Connection Class
TIBCO.EMS Namespace