Class FatalListenerExecutionException

All Implemented Interfaces:
Serializable

public class FatalListenerExecutionException extends AmqpException
Exception to be thrown when the execution of a listener method failed with an irrecoverable problem as an alternative to the AmqpRejectAndDontRequeueException. The listener container must requeue the message and stop its execution in case of this error.
Since:
4.1
See Also:
  • Constructor Details

    • FatalListenerExecutionException

      public FatalListenerExecutionException(String msg, Throwable cause)
      Constructor for ListenerExecutionFailedException.
      Parameters:
      msg - the detail message
      cause - the exception thrown by the listener method
    • FatalListenerExecutionException

      public FatalListenerExecutionException(String msg)
      Constructor for ListenerExecutionFailedException.
      Parameters:
      msg - the detail message