GulajavaMinistudio / google-gson

Automatically exported from code.google.com/p/google-gson
0 stars 0 forks source link

Throw more detailed error message #640

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
Create json with string field and parse it as object

What is the expected output?
Show detailed error message, field name with current value, what type is 
expected, and what we actually had.

What do you see instead?
Right now it throws: Expected BEGIN_OBJECT but was STRING
which is useless most of the time.

Original issue reported on code.google.com by vov...@gmail.com on 29 May 2015 at 4:05