org.apache.qpid.server
Class RequiredDeliveryException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.apache.qpid.AMQException
org.apache.qpid.server.RequiredDeliveryException
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- NoConsumersException, NoRouteException
public abstract class RequiredDeliveryException
- extends org.apache.qpid.AMQException
Signals that a required delivery could not be made. This could be bacuse of
the immediate flag being set and the queue having no consumers, or the mandatory
flag being set and the exchange having no valid bindings.
- See Also:
- Serialized Form
Constructor Summary |
RequiredDeliveryException(java.lang.String message,
AMQMessage payload)
|
RequiredDeliveryException(java.lang.String message,
org.apache.qpid.framing.BasicPublishBody publishBody,
org.apache.qpid.framing.ContentHeaderBody contentHeaderBody,
java.util.List<org.apache.qpid.framing.ContentBody> contentBodies)
|
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 |
RequiredDeliveryException
public RequiredDeliveryException(java.lang.String message,
AMQMessage payload)
RequiredDeliveryException
public RequiredDeliveryException(java.lang.String message,
org.apache.qpid.framing.BasicPublishBody publishBody,
org.apache.qpid.framing.ContentHeaderBody contentHeaderBody,
java.util.List<org.apache.qpid.framing.ContentBody> contentBodies)
getPublishBody
public org.apache.qpid.framing.BasicPublishBody getPublishBody()
getContentHeaderBody
public org.apache.qpid.framing.ContentHeaderBody getContentHeaderBody()
getContentBodies
public java.util.List<org.apache.qpid.framing.ContentBody> getContentBodies()
getReturnMessage
public org.apache.qpid.framing.CompositeAMQDataBlock getReturnMessage(int channel)
getErrorCode
public int getErrorCode()
- Overrides:
getErrorCode
in class org.apache.qpid.AMQException
getReplyCode
public abstract int getReplyCode()