Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 11.0.1 » QAnywhere » QAnywhere Reference » QAnywhere Java API reference » QAnywhere Java API for clients » QAMessageListener2 interface


onException method

void QAMessageListener2.onException(
  QAManagerBase mgr,
  QAException exception,
  QAMessage message
  • mgr   The QAManagerBase that processed the message.

  • exception   The exception that occurred.

  • message   If the exception occurred after the message was passed to onMessage(QAMessage), the message that was processed. Otherwise, null.


This method is called whenever an exception occurs while listening for messages.

Note that this method cannot be used to automatically close the QAManagerBase instance, as the QAManagerBase.close() method blocks until all message listeners are finished processing.

See Also

QAManagerBase interface

close method

onMessage method