Novell exteNd Messaging Platform 5.2

com.sssw.jms.api
Class JMQConnectionLostException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjavax.jms.JMSException
              extended bycom.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

Constructor Summary
JMQConnectionLostException(String reason)
          Construct a JMQConnectionLostException with reason and with error code defaulting to null.
JMQConnectionLostException(String reason, String errCode)
          Construct a JMQConnectionLostException with reason and errorCode for exception.
 
Methods inherited from class javax.jms.JMSException
getErrorCode, getLinkedException, setLinkedException
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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.

Novell exteNd Messaging Platform 5.2

exteNd is a registered trademark of Novell, Inc.
Copyright 1998-2004 Novell, Inc. All Rights Reserved.