[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: |