[CXX-627] Implement mongocxx exception hierarchy Created: 08/Jul/15  Updated: 11/Jan/16  Resolved: 18/Dec/15

Status: Closed
Project: C++ Driver
Component/s: API
Affects Version/s: None
Fix Version/s: 3.0.0-rc0

Type: New Feature Priority: Major - P3
Reporter: Andrew Morrow (Inactive) Assignee: Tess Avitabile (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on CXX-649 make std::error_category for C driver... Closed
Duplicate
is duplicated by CXX-583 implement CRUD API exception hierarchy Closed
Gantt Dependency
has to be done before CXX-742 client::database() should raise an ex... Closed
has to be done before CXX-754 write example that shows how to handl... Closed
Related
related to CXX-768 Implement bsoncxx exception hierarchy Closed
is related to CXX-630 Improve move semantics of model::write Closed
Epic Link: C++11 Driver MongoDB 3.2

 Description   

Implement an exception hierarchy for libmongocxx with the following exception types and error categories:

  • mongocxx::exception (inherits from std::system_error)
    • libmongoc error category
    • mongocxx error category
    • mongocxx::authentication exception
      • has an optional bson doc for an error from the server
    • mongocxx::operation exception
      • has an optional bson doc for an error from the server
      • mongocxx::write exception
      • mongocxx::query exception
      • mongocxx::bulk_write exception


 Comments   
Comment by Tess Avitabile (Inactive) [ 11/Dec/15 ]

https://github.com/mongodb/mongo-cxx-driver/pull/396

Comment by Matt Cotter [ 20/Nov/15 ]

Also see TODO's in read_concern.cpp and write_concern.cpp

Generated at Wed Feb 07 21:59:47 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.