MichaelJamesParsons / json-simple

Automatically exported from code.google.com/p/json-simple
Apache License 2.0
0 stars 0 forks source link

org.json.simple.parser.ParseException provides no message #45

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I just noticed that parse exceptions return null when I do a 
ParseException.getMessage(), so the only sensible way to create a meaningful 
error message is either to look at the getErrorType() + getErrorPosition() 
methods or call the toString() method (which actually produces a nice message!)

Vladimir

Original issue reported on code.google.com by vladimir...@gmail.com on 18 May 2011 at 3:12

GoogleCodeExporter commented 9 years ago

Original comment by fangyid...@gmail.com on 18 May 2011 at 5:37

GoogleCodeExporter commented 9 years ago
This is fixed in r214.

Original comment by jon.cham...@gmail.com on 10 Aug 2013 at 4:57