[jbosstools-issues] [JBoss JIRA] (JBIDE-23359) Validation of exception handler - handlers must not throw exceptions

Jeff MAURY (JIRA) issues at jboss.org
Wed Apr 18 12:13:13 EDT 2018


     [ https://issues.jboss.org/browse/JBIDE-23359?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jeff MAURY updated JBIDE-23359:
-------------------------------
    Fix Version/s: 4.6.x
                       (was: 4.5.x)


> Validation of exception handler - handlers must not throw exceptions
> --------------------------------------------------------------------
>
>                 Key: JBIDE-23359
>                 URL: https://issues.jboss.org/browse/JBIDE-23359
>             Project: Tools (JBoss Tools)
>          Issue Type: Feature Request
>          Components: cdi-extensions
>    Affects Versions: 4.4.2.AM2
>            Reporter: Lukáš Valach
>            Assignee: Jeff MAURY
>             Fix For: 4.6.x
>
>
> As stated in the deltaspike documentation, exception handlers must not throw checked exceptions, and should avoid throwing unchecked exceptions.
> ??Handlers must not throw checked exceptions, and should avoid throwing unchecked exceptions. Should a handler throw an unchecked exception it will propagate up the stack and all handling done via DeltaSpike will cease. Any exception that was being handled will be lost.??
> I checked that throwing exceptions from handler really causes problems. 
> I suggest to add validation which could display error when user attempts to throw checked exception and warning when try to throw unchecked exception.



--
This message was sent by Atlassian JIRA
(v7.5.0#75005)



More information about the jbosstools-issues mailing list