public class MessagePublishingErrorHandler extends Object implements org.springframework.util.ErrorHandler, org.springframework.beans.factory.BeanFactoryAware
ErrorHandler
implementation that sends an ErrorMessage
to a
MessageChannel
.Constructor and Description |
---|
MessagePublishingErrorHandler() |
MessagePublishingErrorHandler(org.springframework.messaging.core.DestinationResolver<org.springframework.messaging.MessageChannel> channelResolver) |
Modifier and Type | Method and Description |
---|---|
org.springframework.messaging.MessageChannel |
getDefaultErrorChannel()
Return the default error channel for this error handler.
|
void |
handleError(Throwable t) |
void |
setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) |
void |
setDefaultErrorChannel(org.springframework.messaging.MessageChannel defaultErrorChannel) |
void |
setDefaultErrorChannelName(String defaultErrorChannelName)
Specify the bean name of default error channel for this error handler.
|
void |
setSendTimeout(long sendTimeout) |
public MessagePublishingErrorHandler()
public MessagePublishingErrorHandler(org.springframework.messaging.core.DestinationResolver<org.springframework.messaging.MessageChannel> channelResolver)
public void setDefaultErrorChannel(org.springframework.messaging.MessageChannel defaultErrorChannel)
public org.springframework.messaging.MessageChannel getDefaultErrorChannel()
public void setDefaultErrorChannelName(String defaultErrorChannelName)
defaultErrorChannelName
- the bean name of the error channelpublic void setSendTimeout(long sendTimeout)
public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
setBeanFactory
in interface org.springframework.beans.factory.BeanFactoryAware
public final void handleError(Throwable t)
handleError
in interface org.springframework.util.ErrorHandler