Class AmqpMessageHeaderErrorMessageStrategy
java.lang.Object
org.springframework.integration.amqp.support.AmqpMessageHeaderErrorMessageStrategy
- All Implemented Interfaces:
- ErrorMessageStrategy
An 
ErrorMessageStrategy extension that adds the raw AMQP message as
 a header to the ErrorMessage.- Since:
- 4.3.10
- Author:
- Gary Russell, Artem Bilan
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final StringHeader name/retry context variable for the raw received message.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbuildErrorMessage(Throwable throwable, AttributeAccessor context) Build the error message.
- 
Field Details- 
AMQP_RAW_MESSAGEHeader name/retry context variable for the raw received message.- See Also:
 
 
- 
- 
Constructor Details- 
AmqpMessageHeaderErrorMessageStrategypublic AmqpMessageHeaderErrorMessageStrategy()
 
- 
- 
Method Details- 
buildErrorMessageDescription copied from interface:ErrorMessageStrategyBuild the error message.- Specified by:
- buildErrorMessagein interface- ErrorMessageStrategy
- Parameters:
- throwable- the payload.
- context- the attributes.
- Returns:
- the ErrorMessage.
 
 
-