cms::ExceptionListener Class Reference

If a CMS provider detects a serious problem, it notifies the client application through an ExceptionListener that is registered with the Connection. More...

#include <src/main/cms/ExceptionListener.h>

Inheritance diagram for cms::ExceptionListener:
Inheritance graph
[legend]

Public Member Functions

virtual ~ExceptionListener ()
virtual void onException (const cms::CMSException &ex)=0
 Called when an exception occurs.

Detailed Description

If a CMS provider detects a serious problem, it notifies the client application through an ExceptionListener that is registered with the Connection.

An exception listener allows a client to be notified of a problem asynchronously. Some connections only consume messages via the asynchronous event mechanism so they would have no other way to learn that their connection has failed.

Since:
1.0

Constructor & Destructor Documentation

virtual cms::ExceptionListener::~ExceptionListener (  )  [virtual]

Member Function Documentation

virtual void cms::ExceptionListener::onException ( const cms::CMSException ex  )  [pure virtual]

Called when an exception occurs.

Once notified of an exception the caller should no longer use the resource that generated the exception.

Parameters:
ex Exception Object that occurred.

The documentation for this class was generated from the following file:

Generated on 1 Dec 2014 for activemq-cpp-3.8.2 by  doxygen 1.6.1