Public Member Functions | |
void | onException (MOMException e) |
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>
void cern.cmw.mom.pubsub.ExceptionListener.onException | ( | MOMException | e | ) |
The exception handler called in case of communication exception
e | the MOMException caught |
Implemented in cern.laser.source.alarmsysteminterface.impl.AlarmSystemInterfaceProxy.