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

Lukáš Valach (JIRA) issues at jboss.org
Fri Oct 14 09:10:00 EDT 2016


Lukáš Valach created JBIDE-23359:
------------------------------------

             Summary: 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.AM1
            Reporter: Lukáš Valach


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
(v6.4.11#64026)



More information about the jbosstools-issues mailing list