Sets an exception listener for this connection.
If a JMS provider detects a serious problem with a connection, it informs the connection's ExceptionListener, if one has been registered. It does this by calling the listener's onException method, passing it a JMSException object describing the problem.
An exception listener allows a client to be notified of a problem asynchronously. Some connections only consume messages, so they would have no other way to learn their connection has failed.
A connection serializes execution of its ExceptionListener.
A JMS provider should attempt to resolve connection problems itself before it notifies the client of them.
Assembly: Kaazing.JMS (in Kaazing.JMS.dll)
Syntax
| Visual Basic |
|---|
Property ExceptionListener As IExceptionListener Get Set |
| C# |
|---|
IExceptionListener ExceptionListener { get; set; } |
| Visual C++ |
|---|
property IExceptionListener^ ExceptionListener { IExceptionListener^ get (); void set (IExceptionListener^ value); } |
Return Value
the ExceptionListener for this connection, or null. if no ExceptionListener is associated with this connection.
Exceptions
| Exception | Condition |
|---|---|
| Kaazing.JMS..::..JMSException | if the JMS provider fails to get the ExceptionListener for this connection. |
| Kaazing.JMS..::..JMSException | if the JMS provider fails to set the exception listener for this connection. |