Class AmqpClientNackReceivedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.amqp.AmqpException
org.springframework.amqp.client.AmqpClientNackReceivedException
- All Implemented Interfaces:
Serializable
An exception thrown when a negative acknowledgement is received after publishing a message.
- Since:
- 4.1
- Author:
- Artem Bilan
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionAmqpClientNackReceivedException(String message, org.apache.qpid.protonj2.client.Message<?> failedMessage) Create an instance with the provided message and failed message. -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.qpid.protonj2.client.Message<?> Return 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
-
AmqpClientNackReceivedException
public AmqpClientNackReceivedException(String message, org.apache.qpid.protonj2.client.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.apache.qpid.protonj2.client.Message<?> getFailedMessage()Return the failed message.- Returns:
- the message.
-