Use `MongoParseError` for connection parse errors

XMLWordPrintableJSON

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

      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
            Reporter:
            Matt Broadstone
            None
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: