boonproject / boon

Simple opinionated Java for the novice to expert level Java Programmer. Low Ceremony. High Productivity.
http://richardhightower.github.io/site/Boon/Welcome.html
Apache License 2.0
520 stars 102 forks source link

Is it possible to find out which attribute it failed at when you are calling the fromMap in MapperComplex.java #345

Open saidatta opened 8 years ago

saidatta commented 8 years ago

Here is the method
public T fromMap(final Map<String, Object> map, final Class cls) { ..}

When I am passing in the map with "birthday" & value "1231/12".

I am getting an SoftenedException with the erorr message that it is unable to parse to US date.

Is it possible to also the field at which exception occurred? For example, The softenedException will have a field attribute where you can see the parsing failed at the attribute "birthday".

Thank you

RichardHightower commented 8 years ago

It shows you exactly where the exception occurred in the JSON stream. Also please include actual results and expected results in the bug report. Also let me know if this is a feature request or a bug report. Either way. I need to know current results and expected results.