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