Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-19720

add a std::error_category for MongoDB error codes

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 3.1.7
    • None
    • Internal Code
    • None
    • Fully Compatible
    • Platform 8 08/28/15

    Description

      In NetworkInterfaceASIO, we often need to indicate error conditions by returning an instance of std::error_code. As we have our own error code space (the codes defined in error_codes.err), we should have our own error category so that we don't collide with any system codes.

      We will probably also need to generate the code from error_codes.err so that we can convert the codes to their associated strings.

      Attachments

        Activity

          People

            adam.midvidy Adam Midvidy
            adam.midvidy Adam Midvidy
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: