cern::cmw::mom::pubsub::ExceptionListener Interface Reference

Inheritance diagram for cern::cmw::mom::pubsub::ExceptionListener:
Inheritance graph
[legend]

List of all members.

Public Member Functions

void onException (MOMException e)

Detailed Description

Public interface. The method void onException(MOMException) has to be implemented to handle communication exception. The example below shows a possible implementation :

<blockquote>

 class myListener implements ExceptionListener {
 ...
 public void onException(MOMExeption e) {
   if (e.testException(MOMException.CONNECTION_LOST_EXCEPTION))
     System.out.println("CONNECTION_LOST_EXCEPTION");
   else
     if (e.testException(MOMException.CONNECTION_RECOVERED_EXCEPTION))
       System.out.println("CONNECTION_RECOVERED_EXCEPTION");
 }
 
</blockquote>
Version:
1.0 23 Jan 2001
Author:
Controls Middleware Project
See also:
MOMException

Member Function Documentation

void cern::cmw::mom::pubsub::ExceptionListener::onException ( MOMException  e  ) 

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

Generated by  doxygen 1.6.2