[CXX-1014] bsoncxx::builder::core exceptions are undocumented Created: 02/Sep/16  Updated: 20/Dec/16  Resolved: 16/Dec/16

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

Type: Bug Priority: Minor - P4
Reporter: David Golden Assignee: J Rassi
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

There are several throw calls that doesn't seem to have any corresponding documentation. Some may be internal, but many look like they are not:

src/bsoncxx/builder/core.cpp
73:            throw bsoncxx::exception{error_code::k_cannot_perform_document_operation_on_array};
85:            throw bsoncxx::exception{error_code::k_cannot_perform_array_operation_on_document};
123:            throw bsoncxx::exception{error_code::k_need_key};
207:        throw bsoncxx::exception{error_code::k_cannot_append_key_in_sub_array};
214:        throw bsoncxx::exception{error_code::k_cannot_append_key_in_sub_array};
438:        throw bsoncxx::exception{error_code::k_cannot_close_document_in_sub_array};
442:        throw bsoncxx::exception{error_code::k_no_document_to_close};
450:        throw bsoncxx::exception{error_code::k_cannot_close_array_in_sub_document};
454:        throw bsoncxx::exception{error_code::k_no_array_to_close};
462:        throw bsoncxx::exception{error_code::k_unmatched_key_in_builder};
470:        throw bsoncxx::exception{error_code::k_unmatched_key_in_builder};
478:        throw bsoncxx::exception{error_code::k_unmatched_key_in_builder};
486:        throw bsoncxx::exception{error_code::k_unmatched_key_in_builder};



 Comments   
Comment by Githook User [ 16/Dec/16 ]

Author:

{u'username': u'jrassi', u'name': u'J. Rassi', u'email': u'rassi@10gen.com'}

Message: CXX-1014 Document builder::core exceptions
Branch: master
https://github.com/mongodb/mongo-cxx-driver/commit/b1c2b381dcc995cc9bebc9707d6a062812dbbe55

Comment by Githook User [ 16/Dec/16 ]

Author:

{u'username': u'jrassi', u'name': u'J. Rassi', u'email': u'rassi@10gen.com'}

Message: CXX-1014 Consistent formatting/grammar in builder/core.hpp
Branch: master
https://github.com/mongodb/mongo-cxx-driver/commit/bc5aee58b3a0ae67086aafbbc8610bdba5bad2c0

Generated at Wed Feb 07 22:01:06 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.