Uploaded image for project: 'RESTEasy'
  1. RESTEasy
  2. RESTEASY-1698

ResteasyViolationException obscures cause if there is one

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 3.0.24.Final
    • Fix Version/s: 4.0.0.Beta1
    • Component/s: None
    • Labels:
      None

      Description

      If an exception occurs in a validator, a ResteasyViolationException is created with its exception field set to the exception. This means that if you want to log a stack trace of the problem, you need to have the RestEasy API on your classpath so you can cast the ConstraintValidationException to the actual type and access the relevant field. It would be nice if the RVE also set the exception as its cause, so that the cause can be retrieved using the standard Throwable#getCause() method.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                jim.ma Jim Ma
                Reporter:
                rcd Rich DiCroce
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: