Class DefaultErrorMessageStrategy
java.lang.Object
org.springframework.integration.support.DefaultErrorMessageStrategy
- All Implemented Interfaces:
 ErrorMessageStrategy
A simple 
ErrorMessageStrategy implementations which produces
 a error message with original message if the AttributeAccessor has
 ErrorMessageUtils.INPUT_MESSAGE_CONTEXT_KEY attribute.
 Otherwise plain ErrorMessage with the throwable as payload.- Since:
 - 4.3.10
 - Author:
 - Gary Russell, Artem Bilan
 - See Also:
 
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionbuildErrorMessage(Throwable throwable, AttributeAccessor attributes) Build the error message. 
- 
Constructor Details
- 
DefaultErrorMessageStrategy
public DefaultErrorMessageStrategy() 
 - 
 - 
Method Details
- 
buildErrorMessage
Description copied from interface:ErrorMessageStrategyBuild the error message.- Specified by:
 buildErrorMessagein interfaceErrorMessageStrategy- Parameters:
 throwable- the payload.attributes- the attributes.- Returns:
 - the ErrorMessage.
 
 
 -