Class: ExceptionListener

ExceptionListener

Interface used to receive asynchronously delivered exceptions. JMS exceptions may be due to a number of different reasons and/or caused by different APIs:
  • connection exceptions caused by timeouts while communicating with the JMS broker;
  • argument exceptions caused by passing invalid arguments or specifying inexistent destination names;
  • authorization exceptions thrown by a server-side hook;
  • etc.
See JMSException#getErrorCode for a list on known exception error codes.

new ExceptionListener()

Creates an ExceptionListener object used to receive asynchronously delivered exceptions.

Method Summary

onException
Notifies user of a JMSException.

Method Detail

onException(exception)

Notifies user of a JMSException. Exceptions may be due to a number of different reasons and/or caused by different APIs. See JMSException#getErrorCode for a list of known exception error codes.
Parameters:
Name Type Description
exception JMSException notified to the listener.