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

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

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

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

References exceptionCode.


Member Function Documentation

boolean cern::cmw::mom::pubsub::MOMException::testException ( int  code  )  [inline]

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.

Referenced by MOMException(), and testException().

Field GENERIC_EXCEPTION


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

Generated by  doxygen 1.6.2