Class ListenerExecutionFailedException

  • All Implemented Interfaces:
    java.io.Serializable

    public class ListenerExecutionFailedException
    extends AmqpException
    Exception to be thrown when the execution of a listener method failed.
    Author:
    Juergen Hoeller, Gary Russell
    See Also:
    MessageListenerAdapter, Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      ListenerExecutionFailedException​(java.lang.String msg, java.lang.Throwable cause, Message... failedMessage)
      Constructor for ListenerExecutionFailedException.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Message getFailedMessage()  
      java.util.Collection<Message> getFailedMessages()  
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

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

      • ListenerExecutionFailedException

        public ListenerExecutionFailedException​(java.lang.String msg,
                                                java.lang.Throwable cause,
                                                Message... failedMessage)
        Constructor for ListenerExecutionFailedException.
        Parameters:
        msg - the detail message
        cause - the exception thrown by the listener method
        failedMessage - the message(s) that failed
    • Method Detail

      • getFailedMessage

        public Message getFailedMessage()
      • getFailedMessages

        public java.util.Collection<Message> getFailedMessages()