[JAVA-356] JSONParseException class not public Created: 22/May/11  Updated: 25/Jun/13  Resolved: 24/Oct/11

Status: Closed
Project: Java Driver
Component/s: API
Affects Version/s: None
Fix Version/s: 2.7

Type: Improvement Priority: Minor - P4
Reporter: Jared D. Cottrell Assignee: Scott Hernandez (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

JSON.parse() can throw a JSONParseException, but that exception can't specifically be caught by any code not in the com.mongodb.util package because the exception is package-private. It would be nice to catch parse exceptions (versus other random exceptions) and handle them differently, ideally returning JSONParseException.getMessage() to the user.



 Comments   
Comment by auto [ 24/Oct/11 ]

Author:

{u'login': u'scotthernandez', u'name': u'Scott Hernandez', u'email': u'scotthernandez@gmail.com'}

Message: JAVA-356: make JSONParseException public
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/da8fd055539d9096055540fa4e96920a9185a74f

Generated at Thu Feb 08 08:52:05 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.