-
Type:
Improvement
-
Resolution: Done
-
Priority:
Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
-
None
-
Not Needed
-
None
-
None
-
None
-
None
-
None
-
None
The extractError function in x/mongo/driver/errors.go converts a server response document into one of our low-level error types, which can then be fed directly into ProcessError to do SDAM error handling. This isn't required for correctness, but exporting this function would make it easier to do this in projects that depend on our low-level APIs.