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

ResteasyViolationException obscures cause if there is one

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 4.0.0.Beta1, 3.5.0.CR1
    • 3.0.24.Final
    • None
    • 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.

      Attachments

        Activity

          People

            rhn-engineering-ema Jim Ma
            rdicroce Richard DiCroce (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: