activemq-cpp-3.9.0
cms::ExceptionListener Class Referenceabstract

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:

Public Member Functions

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

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
exException Object that occurred.

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