Collapse All Expand All

.NET Framework Class Library
Connection Class See Also

[TIBCO.EMS.UFOCLIENT .NET client library 5.1 documentation]

Get and set the exception event listener

Namespace: TIBCO.EMS.UFO
Assembly: TIBCO.EMS.UFO (in TIBCO.EMS.UFO.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 listeners onException method with an exception argument that details the problem.

Note:: Use either TIBCO.EMS.EMSExceptionHandler or TIBCO.EMS.IExceptionListener 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
--- | ---
IllegalStateException | If the connection is closed

# See Also

Connection Class
TIBCO.EMS.UFO Namespace