diff --git a/docs/src/reference/docbook/router.xml b/docs/src/reference/docbook/router.xml index 5a467735b8..10b9053ee4 100644 --- a/docs/src/reference/docbook/router.xml +++ b/docs/src/reference/docbook/router.xml @@ -142,6 +142,35 @@ + +
+ Routing and Error handling + + + Spring Integration also provides a special type router ErrorMessageExceptionTypeRouter for routing + Error Messages (a Message with payload of type Throwable). + 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 + 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 + + + + + + + + +]]> + + + In the future we'll consider a more convenient namespace based support similar to 'header-value-router' and 'payload-type-router' + +
Configuring Router