Interface ErrorMessageStrategy

All Known Implementing Classes:
AmqpMessageHeaderErrorMessageStrategy, DefaultErrorMessageStrategy, RawRecordHeaderErrorMessageStrategy
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

public interface ErrorMessageStrategy
A strategy to build an ErrorMessage based on the provided Throwable and AttributeAccessor as a context.

The Throwable payload is typically MessagingException which failedMessage property can be used to determine a cause of the error.

This strategy can be used for the ErrorMessageSendingRecoverer for RetryContext access.

Artem Bilan, Gary Russell