undertow-io/undertow — pull request #237 by billoneil (2014-08-07 23:49:09+00:00)
Title: ExceptionHandler

A HttpHandler that delegates to an underlying handler. In the case of an exception during execution of the underlying HttpHandler dispatch to a different HttpHandler based on the Exception's class.

The order the exception handlers are added is important to handle inheritance. I noticed some of the JAX-RS exception mappers try to calculate the inheritance depth to handle this. I don't think it needs to try and be that clever.