public class MessagePublishingErrorHandler extends ErrorMessagePublisher implements ErrorHandler
logger, messagingTemplate
Constructor and Description |
---|
MessagePublishingErrorHandler() |
MessagePublishingErrorHandler(DestinationResolver<MessageChannel> channelResolver) |
Modifier and Type | Method and 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.
|
determinePayload, getChannel, getChannelResolver, getErrorMessageStrategy, getMessagingTemplate, payloadWhenNull, publish, publish, publish, publish, publish, setBeanFactory, setChannel, setChannelName, setChannelResolver, setErrorMessageStrategy, setSendTimeout
public MessagePublishingErrorHandler()
public MessagePublishingErrorHandler(DestinationResolver<MessageChannel> channelResolver)
public void setDefaultErrorChannel(@Nullable MessageChannel defaultErrorChannel)
@Nullable public MessageChannel getDefaultErrorChannel()
public void setDefaultErrorChannelName(String defaultErrorChannelName)
defaultErrorChannelName
- the bean name of the error channelpublic final void handleError(Throwable ex)
handleError
in interface ErrorHandler