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

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

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 2.4
    • Fix Version/s: None
    • Component/s: API
    • Labels:
      None
    • Story Points:
      1

      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

            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: