-
Type: Improvement
-
Resolution: Done
-
Priority: 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