Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
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.