com.sssw.jms.api
Class JMQConnectionLostException
java.lang.Object
java.lang.Throwable
java.lang.Exception
javax.jms.JMSException
com.sssw.jms.api.JMQConnectionLostException
- All Implemented Interfaces:
- Serializable
- public class JMQConnectionLostException
- extends JMSException
This exception is raised when a client looses the connection to its
JMS server(s). The exception can be used in the onException
method of an
ExceptionListener
set on a
Connection object:
public void onException(JMSException ex)
{
if (ex instanceof JMQConnectionLostException)
{
// handle disconnection ...
}
else ...
}
- Since:
- jBroker MQ 1.3
- See Also:
- Serialized Form
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
JMQConnectionLostException
public JMQConnectionLostException(String reason)
- Construct a JMQConnectionLostException with reason and with error
code defaulting to null.
- Parameters:
reason
- a description of the exception.
JMQConnectionLostException
public JMQConnectionLostException(String reason,
String errCode)
- Construct a JMQConnectionLostException with reason and errorCode
for exception.
- Parameters:
reason
- a description of the exception.errCode
- a string specifying the vendor specific error code.
exteNd is a registered trademark of Novell, Inc.
Copyright 1998-2004 Novell, Inc. All Rights Reserved.