Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

cern::cmw::mom::pubsub::MOMException Class Reference

List of all members.

Public Member Functions

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

Static Public Attributes

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

Private Attributes

int exceptionCode = GENERIC_EXCEPTION

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  )  [inline]
 

Creates an empty MOMException.

cern::cmw::mom::pubsub::MOMException::MOMException String  s  )  [inline]
 

Creates a MOMException setting the text.

Parameters:
s the String value of the text

cern::cmw::mom::pubsub::MOMException::MOMException String  s,
int  code
[inline]
 

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  )  [inline]
 

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


Member Data Documentation

final int cern::cmw::mom::pubsub::MOMException::CONNECTION_LOST_EXCEPTION = 1 [static]
 

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.

final int cern::cmw::mom::pubsub::MOMException::CONNECTION_RECOVERED_EXCEPTION = 2 [static]
 

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

int cern::cmw::mom::pubsub::MOMException::exceptionCode = GENERIC_EXCEPTION [private]
 

final int cern::cmw::mom::pubsub::MOMException::GENERIC_EXCEPTION = 0 [static]
 

Field GENERIC_EXCEPTION


The documentation for this class was generated from the following file:
Generated on Thu Apr 30 03:07:58 2009 for ACS Java API by doxygen 1.3.8