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 org.springframework.amqp.AmqpException
An exception thrown when a negative acknowledgement received after publishing a
message.
- Since:
- 2.3.3
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionAmqpNackReceivedException(String message, org.springframework.amqp.core.Message failedMessage) Create an instance with the provided message and failed message. -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.amqp.core.MessageReturn the failed message.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
AmqpNackReceivedException
public AmqpNackReceivedException(String message, org.springframework.amqp.core.Message failedMessage) Create an instance with the provided message and failed message.- Parameters:
message- the message.failedMessage- the failed message.
-
-
Method Details
-
getFailedMessage
public org.springframework.amqp.core.Message getFailedMessage()Return the failed message.- Returns:
- the message.
-