Uploaded image for project: 'Johnzon'
  1. Johnzon
  2. JOHNZON-370

Include class, property, type and json value in mapping exceptions

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.2.19
    • None
    • None

    Description

      Ideally, mapping exceptions that pertain to setting properties give information that can help users find the java side, e.g:

       

      public static class Widget {
      
          private Color[] arrayOfObject;
      

      And the json side:

       

      [{"red": 255, "green": 165, "blue":0},{"red": 0, "green": 45, "blue":127}]

      Then when things do not match up, I have enough reference points to see and resolve the issue.

      Ideally as well this information would be very brief and avoid printing entire class names, packages and all as it does reduce readability significantly by burying the exception text.  Enough short context clues is enough for users to reasonably be enabled to find issues.  Most will see the issue quite quickly given a few hints.

       

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            dblevins David Blevins
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: