Class MessagePublishingErrorHandler
java.lang.Object
org.springframework.integration.core.ErrorMessagePublisher
org.springframework.integration.channel.MessagePublishingErrorHandler
- All Implemented Interfaces:
Aware
,BeanFactoryAware
,ErrorHandler
public class MessagePublishingErrorHandler extends ErrorMessagePublisher implements ErrorHandler
- Author:
- Mark Fisher, Iwein Fuld, Oleg Zhurakousky, Gary Russell, Artem Bilan
-
Field Summary
Fields inherited from class org.springframework.integration.core.ErrorMessagePublisher
logger, messagingTemplate
-
Constructor Summary
Constructors Constructor Description MessagePublishingErrorHandler()
MessagePublishingErrorHandler(DestinationResolver<MessageChannel> channelResolver)
-
Method Summary
Modifier and Type Method Description MessageChannel
getDefaultErrorChannel()
Return the default error channel for this error handler.void
handleError(Throwable ex)
void
setDefaultErrorChannel(MessageChannel defaultErrorChannel)
void
setDefaultErrorChannelName(String defaultErrorChannelName)
Specify the bean name of default error channel for this error handler.Methods inherited from class org.springframework.integration.core.ErrorMessagePublisher
determinePayload, getChannel, getChannelResolver, getErrorMessageStrategy, getMessagingTemplate, payloadWhenNull, publish, publish, publish, publish, publish, setBeanFactory, setChannel, setChannelName, setChannelResolver, setErrorMessageStrategy, setSendTimeout
-
Constructor Details
-
MessagePublishingErrorHandler
public MessagePublishingErrorHandler() -
MessagePublishingErrorHandler
-
-
Method Details
-
setDefaultErrorChannel
-
getDefaultErrorChannel
Return the default error channel for this error handler.- Returns:
- the error channel.
- Since:
- 4.3
-
setDefaultErrorChannelName
Specify the bean name of default error channel for this error handler.- Parameters:
defaultErrorChannelName
- the bean name of the error channel- Since:
- 4.3.3
-
handleError
- Specified by:
handleError
in interfaceErrorHandler
-