Class ErrorMessageUtils
java.lang.Object
org.springframework.integration.support.ErrorMessageUtils
public final class ErrorMessageUtils extends Object
Utilities for building error messages.
- Since:
- 4.3.10
- Author:
- Gary Russell, Artem Bilan
-
Field Summary
Fields Modifier and Type Field Description static StringFAILED_MESSAGE_CONTEXT_KEYThe context key for the message object.static StringINPUT_MESSAGE_CONTEXT_KEYThe context key for the message object. -
Method Summary
Modifier and Type Method Description static AttributeAccessorgetAttributeAccessor(Message<?> inputMessage, Message<?> failedMessage)Return aAttributeAccessorfor the provided arguments.
-
Field Details
-
FAILED_MESSAGE_CONTEXT_KEY
The context key for the message object.- See Also:
- Constant Field Values
-
INPUT_MESSAGE_CONTEXT_KEY
The context key for the message object.- See Also:
- Constant Field Values
-
-
Method Details
-
getAttributeAccessor
public static AttributeAccessor getAttributeAccessor(@Nullable Message<?> inputMessage, @Nullable Message<?> failedMessage)Return aAttributeAccessorfor the provided arguments.- Parameters:
inputMessage- the input message.failedMessage- the failed message.- Returns:
- the context.
-