Class AmqpNackReceivedException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.springframework.amqp.AmqpException
-
- org.springframework.amqp.rabbit.core.AmqpNackReceivedException
-
- All Implemented Interfaces:
Serializable
public class AmqpNackReceivedException extends AmqpException
An exception thrown when a negative acknowledgement received after publishing a message.- Since:
- 2.3.3
- Author:
- Gary Russell
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AmqpNackReceivedException(String message, Message failedMessage)
Create an instance with the provided message and failed message.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Message
getFailedMessage()
Return the failed message.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Method Detail
-
getFailedMessage
public Message getFailedMessage()
Return the failed message.- Returns:
- the message.
-
-