Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-23359

Validation of exception handler - handlers must not throw exceptions

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Unresolved
    • Major
    • 4.30.x
    • 4.4.2.AM2
    • cdi-extensions
    • None

    Description

      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.

      Attachments

        Activity

          People

            jmaury@redhat.com Jeff MAURY
            lvalach_jira Lukáš Valach (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: