From 5e628b369262469a98ce8f8cf32c6e4fdc7c7016 Mon Sep 17 00:00:00 2001 From: Artem Bilan Date: Mon, 10 Apr 2017 09:17:25 -0400 Subject: [PATCH] Fix ErrorMessages typo in the configuration.adoc The `ErrorMessages` may confuse people since there is no such a class. http://stackoverflow.com/questions/43318551/error-message-was-not-delivered-headers-null * Fix `ErrorMessages` code to the `ErrorMessage` s --- src/reference/asciidoc/configuration.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/reference/asciidoc/configuration.adoc b/src/reference/asciidoc/configuration.adoc index 7fcd6bb1e3..b192d1df3d 100644 --- a/src/reference/asciidoc/configuration.adoc +++ b/src/reference/asciidoc/configuration.adoc @@ -189,7 +189,7 @@ that are thrown by a Spring Integration task that is executing within a `TaskExe This does _not_ apply to Exceptions thrown by a handler that is operating within the same thread as the sender (e.g. through a `DirectChannel` as described above). -NOTE: When Exceptions occur in a scheduled poller task's execution, those exceptions will be wrapped in `ErrorMessages` and sent to the 'errorChannel' as well. +NOTE: When Exceptions occur in a scheduled poller task's execution, those exceptions will be wrapped in `ErrorMessage` s and sent to the 'errorChannel' as well. To enable global error handling, simply register a handler on that channel. For example, you can configure Spring Integration's `ErrorMessageExceptionTypeRouter` as the handler of an endpoint that is subscribed to the 'errorChannel'.