Public Member Functions | Static Public Attributes

cern.cmw.mom.pubsub.MOMException Class Reference

Inherits java::lang::Exception.

List of all members.

Public Member Functions

 MOMException ()
 MOMException (String s)
 MOMException (String s, int code)
boolean testException (int code)

Static Public Attributes

static final int GENERIC_EXCEPTION = 0
static final int CONNECTION_LOST_EXCEPTION = 1
static final int CONNECTION_RECOVERED_EXCEPTION = 2

Detailed Description

Generic exception. It may be raised when instantiating a Publisher or Subscriber through the factory class PubSubFactory or thrown whenever there is a problem in the underlying JMS communication. In this case the ExceptionListener is called passing to the onException method the MOMException with the corresponding exception code.

Version:
0.9.0 21 Nov 2000
Author:
Controls Middleware Project
See also:
PubSubFactory
ExceptionListener

Constructor & Destructor Documentation

cern.cmw.mom.pubsub.MOMException.MOMException (  ) 

Creates an empty MOMException.

cern.cmw.mom.pubsub.MOMException.MOMException ( String  s  ) 

Creates a MOMException setting the text.

Parameters:
s the String value of the text
cern.cmw.mom.pubsub.MOMException.MOMException ( String  s,
int  code 
)

Creates a MOMException setting the text and the exception code.

Parameters:
s the String value of the text
code the exception code

Member Function Documentation

boolean cern.cmw.mom.pubsub.MOMException.testException ( int  code  ) 

Check the exception type. Utilized to check the exception type from the onException handler.

Parameters:
code the exception code to test
Returns:
true if the exception caught corresponds to code

Referenced by cern.laser.source.alarmsysteminterface.impl.AlarmSystemInterfaceProxy.onException().


Member Data Documentation

Field CONNECTION_LOST. A MOMException with testException(MOMException.CONNECTION_LOST_EXCEPTION) == true means that a break in the connection to the broker has been detected.

Field CONNECTION_RECOVERED. A MOMException with testException(MOMException.CONNECTION_RECOVERED) == true means that a reconnection to the broker has been detected.

Field GENERIC_EXCEPTION


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