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

add a std::error_category for MongoDB error codes

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.1.7
    • Affects Version/s: None
    • Component/s: Internal Code
    • None
    • Fully Compatible
    • Platform 8 08/28/15

      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.

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

              Created:
              Updated:
              Resolved: