Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-1526

Use `MongoParseError` for connection parse errors

    • Type: Icon: Improvement Improvement
    • Resolution: Gone away
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Core
    • None
    • Not Needed

      In core, the Connection class can emit a parseError event, with a custom-constructed object which does not inherit from Error at all. Part of the SDAM refactor involves funneling all error paths from the low level of core into a single error event emitted from the Server class. Parse errors should be wrapped in the newly created MongoParseError class, and emitted directly through the error event.

            Assignee:
            Unassigned Unassigned
            Reporter:
            matt.broadstone@mongodb.com Matt Broadstone
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: