Uploaded image for project: 'C++ Driver'
  1. C++ Driver
  2. CXX-1014

bsoncxx::builder::core exceptions are undocumented

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 3.2.0-rc0
    • Affects Version/s: None
    • Component/s: Documentation
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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};
      

            Assignee:
            rassi J Rassi (Inactive)
            Reporter:
            david.golden@mongodb.com David Golden
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: