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 String
FAILED_MESSAGE_CONTEXT_KEY
The context key for the message object.static String
INPUT_MESSAGE_CONTEXT_KEY
The context key for the message object. -
Method Summary
Modifier and Type Method Description static AttributeAccessor
getAttributeAccessor(Message<?> inputMessage, Message<?> failedMessage)
Return aAttributeAccessor
for 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 aAttributeAccessor
for the provided arguments.- Parameters:
inputMessage
- the input message.failedMessage
- the failed message.- Returns:
- the context.
-