Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Won't Fix
-
0.3-incubating
-
None
-
None
Description
I would assume that when you have an exception hierarchy DeltaSpike would call handlers for the sub class before it call handlers for the super class.
But that's not the case.
Assume you have:
@ExceptionHandler public class AdminWebExceptionHandler { public void handleAccessDeniedException(@Handles @FacesRequest ExceptionEvent<AccessDeniedException> exceptionEvent, FacesContext facesContext) { } public void handleRuntimeException(@Handles(ordinal = -1) @FacesRequest ExceptionEvent<RuntimeException> exceptionEvent, FacesContext facesContext) { } }
In that case handleRuntimeException() is called.
I would except to have handleAccessDeniedException() called instead.
Attachments
Issue Links
- is cloned by
-
DELTASPIKE-358 ExceptionHandler should call exception hierarchies bottom up
- Closed