org.apache.qpid.server
Class RequiredDeliveryException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.apache.qpid.AMQException
              extended by 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)
           
 
Method Summary
 java.util.List<org.apache.qpid.framing.ContentBody> getContentBodies()
           
 org.apache.qpid.framing.ContentHeaderBody getContentHeaderBody()
           
 int getErrorCode()
           
 org.apache.qpid.framing.BasicPublishBody getPublishBody()
           
abstract  int getReplyCode()
           
 org.apache.qpid.framing.CompositeAMQDataBlock getReturnMessage(int channel)
           
 
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

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)
Method Detail

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()