NODE-4015Backlog

Standardize Connection String Validation Errors and MongoParseError

We use MongoAPIError interchangeably with MongoParseError when parsing connection string, and, moreover, the connection string module has its own version of the MongoParseError. It would be good to standardize the returned error from validating MongoClient options to at least extend from the same class in all of these different cases. We should probably have a separate type for connection string validation errors because we also use MongoParseError when we are literally unable to parse a message

Affected Versions
Versions known to exhibit this issue

No affected versions recorded.

Fixed Versions
Versions that include the fix

No fix available yet.

Components
Server components related to this issue
Connection StringError
Labels
Tags and classification
breakingnode-internalrank-higherusability