Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-356

JSONParseException class not public

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • 2.7
    • None
    • API
    • None

    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.

      Attachments

        Activity

          People

            scotthernandez Scott Hernandez (Inactive)
            jared Jared D. Cottrell
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: