[JAVA-1966] Create reference documentation of changes to exceptions thrown in new CRUD API Created: 15/Sep/15 Updated: 20/Dec/19 Resolved: 20/Dec/19 |
|
| Status: | Closed |
| Project: | Java Driver |
| Component/s: | Documentation |
| Affects Version/s: | 3.0.0 |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Jeffrey Yemin | Assignee: | Unassigned |
| Resolution: | Won't Fix | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||
| Description |
|
The reference documentation should call out that some of the exceptions on the write path have changed in the new CRUD API. In particular, MongoWriteException (containing a WriteError whose ErrorCategory is DUPLICATE_KEY) is thrown rather than DuplicateKeyException. See https://groups.google.com/forum/#!msg/mongodb-user/tNKJ6sczXHI/vlA93RxZCwAJ. |