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

bsoncxx::builder::core exceptions are undocumented

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.2.0-rc0
    • Component/s: Documentation
    • Labels:
      None
    • Story Points:
      1
    • Sprint:
      Perl/CXX 2016-11-11, Perl/CXX 2016-12-02, Perl/CXX 2016-12-23

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

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: