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

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

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 2.4
    • Component/s: API
    • Labels:
      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 Unassigned
            Reporter:
            rn@deftlabs.com Ryan Nitz
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: