

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 |
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.
| 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.
| 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.
| s | the String value of the text | |
| code | the exception code |
References exceptionCode.
| boolean cern::cmw::mom::pubsub::MOMException::testException | ( | int | code | ) | [inline] |
Check the exception type. Utilized to check the exception type from the onException handler.
| code | the exception code to test |
References exceptionCode.
Referenced by cern::laser::client::impl::services::selection::HeartbeatHelper::onException(), cern::cmw::mom::test::Client::onException(), cern::laser::source::alarmsysteminterface::impl::AlarmSystemInterfaceProxy::onException(), cern::laser::client::impl::services::selection::AlarmSelectionHelper::onException(), and cern::laser::client::impl::services::selection::AlarmSearchHelper::onException().
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] |
Referenced by MOMException(), and testException().
final int cern::cmw::mom::pubsub::MOMException::GENERIC_EXCEPTION = 0 [static] |
Field GENERIC_EXCEPTION
1.6.2