Unify exception-handling code around DeltaSpike Exceptions

Description

This sample project shows an approach to exception handling with DeltaSpike which unifies JSF and REST exception handling: https://github.com/sgilda/wildfly-quickstart/tree/780e78a2a5ce1df69fd63753c50dc9fdfd9fdb69/deltaspike-exception-handling

With a bit of integration glue for JSF and JAX-RS (DeltaSpikeExceptionHandler and DeltaSpikeExceptionMapper), it uses CDI qualifiers which can be used to distinguish between exception events which are triggered by Faces calls and those for REST calls. It should also take advantage of DeltaSpike's exception unwrapping to choose the exception-handling strategy based on the root exception.

We should try out this approach, instead of having one ExceptionHandler plus one ExceptionMapper per exception type (as we often do now).

Assignee

Unassigned

Reporter

Sean Flanigan

Labels

Tested Version/s

None

Priority

unspecified
Configure