catekr / json-simple

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

JSONValue.parse(Reader in) should propagate exceptions #13

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
It would be better to propagate IOExceptions or ParseExceptions thrown from
JSONParser.parser() and allow developers to handle the error, rather than
test for null and guess as to the actual cause.

Original issue reported on code.google.com by john.eri...@gmail.com on 29 Nov 2009 at 7:22

Attachments:

GoogleCodeExporter commented 8 years ago
Thanks for your patch.

Actually you can do the same thing with JSONValue.parseWithException(), while
JSONValue.parse() is used for backward compatibility.

Thanks.

Original comment by fangyid...@gmail.com on 30 Nov 2009 at 2:46

GoogleCodeExporter commented 8 years ago
Right you are. Sorry I didn't look at that closer. Thanks.

Original comment by john.eri...@gmail.com on 30 Nov 2009 at 3:19