[TIBCO.EMS .NET client library 8.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

ExceptionCondition
TIBCO.EMS..::.IllegalStateExceptionIf the connection is closed

See Also