Uploaded image for project: 'Seam Faces'
  1. Seam Faces
  2. SEAMFACES-87

CatchIntegrationHandler loses track of an exception when the catch method rethrow the exception

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Minor
    • Resolution: Done
    • Affects Version/s: 3.0.0.Beta3
    • Fix Version/s: 3.0.0.CR1
    • Component/s: None
    • Labels:
      None

      Description

      When rethrowing an exception from a catch handled method like this:

      public void printExceptionMessage(@Handles CaughtException<Throwable> event) {
      		log.info("Something bad happened: " + event.getException().getMessage());
      		event.rethrow(); //LIKE THIS
      	}
      

      CatchIntegrationHandler loses track of an exception. so there's no JSF Error page but a page 500 with the stacktrace page.

        Gliffy Diagrams

          Activity

          Hide
          spinner José Freitas added a comment -

          I wrote a try/catch block to handle event.rethrow inside the catch handled method.

          Show
          spinner José Freitas added a comment - I wrote a try/catch block to handle event.rethrow inside the catch handled method.
          Show
          bleathem Brian Leathem added a comment - https://github.com/seam/faces/commit/c8e493e51207c915a3d7e8f29e2a249df099f70f

            People

            • Assignee:
              bleathem Brian Leathem
              Reporter:
              spinner José Freitas
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development