Package org.springframework.amqp.core
Class AmqpMessageReturnedException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.springframework.amqp.AmqpException
-
- org.springframework.amqp.core.AmqpMessageReturnedException
-
- All Implemented Interfaces:
Serializable
public class AmqpMessageReturnedException extends AmqpException
Exception thrown if the request message cannot be delivered when the mandatory flag is set.- Since:
- 1.5
- Author:
- Gary Russell
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AmqpMessageReturnedException(String message, Message returnedMessage, int replyCode, String replyText, String exchange, String routingKey)
Deprecated.AmqpMessageReturnedException(String message, ReturnedMessage returned)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getExchange()
int
getReplyCode()
String
getReplyText()
ReturnedMessage
getReturned()
Message
getReturnedMessage()
String
getRoutingKey()
String
toString()
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
-
-
-
Constructor Detail
-
AmqpMessageReturnedException
@Deprecated public AmqpMessageReturnedException(String message, Message returnedMessage, int replyCode, String replyText, String exchange, String routingKey)
Deprecated.
-
AmqpMessageReturnedException
public AmqpMessageReturnedException(String message, ReturnedMessage returned)
-
-
Method Detail
-
getReturnedMessage
public Message getReturnedMessage()
-
getReplyCode
public int getReplyCode()
-
getReplyText
public String getReplyText()
-
getExchange
public String getExchange()
-
getRoutingKey
public String getRoutingKey()
-
getReturned
public ReturnedMessage getReturned()
-
-