-
Type: Improvement
-
Resolution: Gone away
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Core
-
None
-
Empty show more show less
-
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.