public class DefaultErrorMessageStrategy extends java.lang.Object implements ErrorMessageStrategy
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.ErrorMessageUtils| Constructor and Description |
|---|
DefaultErrorMessageStrategy() |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.messaging.support.ErrorMessage |
buildErrorMessage(java.lang.Throwable throwable,
org.springframework.core.AttributeAccessor attributes)
Build the error message.
|
public org.springframework.messaging.support.ErrorMessage buildErrorMessage(java.lang.Throwable throwable,
org.springframework.core.AttributeAccessor attributes)
ErrorMessageStrategybuildErrorMessage in interface ErrorMessageStrategythrowable - the payload.attributes - the attributes.