Class ConditionalRejectingErrorHandler.DefaultExceptionStrategy
java.lang.Object
org.springframework.amqp.rabbit.listener.ConditionalRejectingErrorHandler.DefaultExceptionStrategy
- All Implemented Interfaces:
FatalExceptionStrategy
- Enclosing class:
- ConditionalRejectingErrorHandler
public static class ConditionalRejectingErrorHandler.DefaultExceptionStrategy
extends Object
implements FatalExceptionStrategy
Default implementation of
FatalExceptionStrategy
.- Since:
- 1.6.3
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
protected boolean
isUserCauseFatal
(Throwable cause) Subclasses can override this to add custom exceptions.protected void
Log the fatal ListenerExecutionFailedException at WARN level, excluding stack trace.
-
Field Details
-
logger
-
-
Constructor Details
-
DefaultExceptionStrategy
public DefaultExceptionStrategy()
-
-
Method Details
-
isFatal
- Specified by:
isFatal
in interfaceFatalExceptionStrategy
-
logFatalException
Log the fatal ListenerExecutionFailedException at WARN level, excluding stack trace. Subclasses can override this behavior.- Parameters:
t
- theListenerExecutionFailedException
.cause
- the root cause (skipping any generalMessagingException
s).- Since:
- 2.2.4
-
isUserCauseFatal
Subclasses can override this to add custom exceptions.- Parameters:
cause
- the cause- Returns:
- true if the cause is fatal.
-