Public Member Functions

cern.cmw.mom.pubsub.ExceptionListener Interface Reference

Inheritance diagram for cern.cmw.mom.pubsub.ExceptionListener:
cern.laser.source.alarmsysteminterface.impl.AlarmSystemInterfaceProxy alma.acs.alarmsystem.binding.ACSLaserSource

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 exception handler called in case of communication exception

Parameters:
e the MOMException caught

Implemented in cern.laser.source.alarmsysteminterface.impl.AlarmSystemInterfaceProxy.


The documentation for this interface was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties