]
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.