org.apache.qpid.client
Class JMSAMQException
java.lang.Object
java.lang.Throwable
java.lang.Exception
javax.jms.JMSException
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. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
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