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

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Done
    • Priority: Major - P3
    • None
    • Affects Version/s: 2.4
    • Component/s: API
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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

            Assignee:
            Unassigned
            Reporter:
            Ryan Nitz
            None
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: