diff --git a/docs/src/reference/docbook/router.xml b/docs/src/reference/docbook/router.xml index 9ccfcf7513..2d71f7655b 100644 --- a/docs/src/reference/docbook/router.xml +++ b/docs/src/reference/docbook/router.xml @@ -147,16 +147,16 @@ Routing and Error handling - Spring Integration also provides a special type router ErrorMessageExceptionTypeRouter for routing - Error Messages (a Message with payload of type Throwable). + Spring Integration also provides a special type-based router called ErrorMessageExceptionTypeRouter for routing + Error Messages (Messages whose payload is a Throwable instance). ErrorMessageExceptionTypeRouter is very similar to the PayloadTypeRouter. In fact they are almost identical. The only difference is that while PayloadTypeRouter navigates - the instance hierarchy of an payload instance (e.g., payload.getClass().getSuperclass()) to find the most + the instance hierarchy of a payload instance (e.g., payload.getClass().getSuperclass()) to find the most specific type/channel mappings, the ErrorMessageExceptionTypeRouter navigates the hierarchy of 'exception causes' (e.g., payload.getCause()) to find the most specific Throwable type/channel mappings. - Below is a sample configuration for ErrorMessageExceptionTypeRouter + Below is a sample configuration for ErrorMessageExceptionTypeRouter.