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

Javascript "Error" objects thrown in the shell should include a "code" field where possible for easier programmatic inspection

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.1.7
    • Affects Version/s: None
    • Component/s: Shell
    • Labels:
      None
    • Fully Compatible
    • Sharding 7 08/10/15

      We should make all Error objects thrown in the shell include a 'code' field where applicable so anything catching such a thrown Error can inspect the code to determine what kind of error it was.

            Assignee:
            spencer@mongodb.com Spencer Brody (Inactive)
            Reporter:
            spencer@mongodb.com Spencer Brody (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: