Class NackedAmqpMessageException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.core.NestedRuntimeException
org.springframework.messaging.MessagingException
org.springframework.integration.amqp.support.NackedAmqpMessageException
All Implemented Interfaces:
java.io.Serializable

public class NackedAmqpMessageException
extends org.springframework.messaging.MessagingException
An exception representing a negatively acknowledged message from a publisher confirm.
Since:
4.3.12
See Also:
Serialized Form
  • Constructor Summary

    Constructors 
    Constructor Description
    NackedAmqpMessageException​(org.springframework.messaging.Message<?> message, java.lang.Object correlationData, java.lang.String nackReason)  
  • Method Summary

    Modifier and Type Method Description
    java.lang.Object getCorrelationData()  
    java.lang.String getNackReason()  
    java.lang.String toString()  

    Methods inherited from class org.springframework.messaging.MessagingException

    getFailedMessage

    Methods inherited from class org.springframework.core.NestedRuntimeException

    contains, getMessage, getMostSpecificCause, getRootCause

    Methods inherited from class java.lang.Throwable

    addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • NackedAmqpMessageException

      public NackedAmqpMessageException​(org.springframework.messaging.Message<?> message, @Nullable java.lang.Object correlationData, java.lang.String nackReason)
  • Method Details

    • getCorrelationData

      public java.lang.Object getCorrelationData()
    • getNackReason

      public java.lang.String getNackReason()
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class org.springframework.messaging.MessagingException