org.apache.qpid.client
Class JMSAMQException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by javax.jms.JMSException
              extended by org.apache.qpid.client.JMSAMQException
All Implemented Interfaces:
Serializable

public class JMSAMQException
extends JMSException

JMSException does not accept wrapped exceptions in its constructor. Presumably this is because it is a relatively old Java exception class, before this was added as a default to Throwable. This exception class accepts wrapped exceptions as well as error messages, through its constructor, but is a JMSException.

CRC Card
Responsibilities Collaborations
Accept wrapped exceptions as a JMSException.

See Also:
Serialized Form

Constructor Summary
JMSAMQException(org.apache.qpid.AMQException cause)
          Deprecated. Use the other constructor and write a helpfull message. This one will be deleted.
JMSAMQException(String message, Exception cause)
          Creates a JMSException, wrapping another exception class.
 
Method Summary
 
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JMSAMQException

public JMSAMQException(String message,
                       Exception cause)
Creates a JMSException, wrapping another exception class.

Parameters:
message - The error message.
cause - The underlying exception that caused this one. May be null if none is to be set.

JMSAMQException

public JMSAMQException(org.apache.qpid.AMQException cause)
Deprecated. Use the other constructor and write a helpfull message. This one will be deleted.

Parameters:
cause - The underlying exception.


Licensed to the Apache Software Foundation