Class FatalListenerExecutionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.amqp.AmqpException
org.springframework.amqp.listener.FatalListenerExecutionException
- All Implemented Interfaces:
Serializable
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 Summary
ConstructorsConstructorDescriptionConstructor for ListenerExecutionFailedException.FatalListenerExecutionException(String msg, Throwable cause) Constructor for ListenerExecutionFailedException. -
Method Summary
Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
FatalListenerExecutionException
-
FatalListenerExecutionException
Constructor for ListenerExecutionFailedException.- Parameters:
msg- the detail message
-