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

Java driver throws a lot of undeclared/non MongoException runtime exceptions

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • 2.4
    • API
    • None

    Description

      The following runtime exceptions are thrown by the Java driver.

      They make handling database failures incredibly difficult.

      Essentially, the only thing the Java driver should throw are a) declared exceptions (e.g., IOException) or MongoException (or a subclass of).

      Let me know if you are OK with these changes and I'll modify the driver.

      RuntimeException
      IllegalArgumentException
      IllegalStateException
      UnsupportedOperationException

      Attachments

        Activity

          People

            Unassigned Unassigned
            rn@deftlabs.com Ryan Nitz
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: