[ 
https://issues.apache.org/jira/browse/DELTASPIKE-357?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Gerhard Petracek closed DELTASPIKE-357.
---------------------------------------


> ExceptionHandler should call exception hierarchies bottom up
> ------------------------------------------------------------
>
>                 Key: DELTASPIKE-357
>                 URL: https://issues.apache.org/jira/browse/DELTASPIKE-357
>             Project: DeltaSpike
>          Issue Type: Bug
>          Components: ExceptionControl-Module
>    Affects Versions: 0.3-incubating
>            Reporter: Maik Ebert
>            Assignee: Jason Porter
>
> 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:
> {code}
> @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) {
> }
> }
> {code}
> In that case handleRuntimeException() is called.
> I would except to have handleAccessDeniedException() called instead.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to