[GODRIVER-1991] Investigate how to handle errors from the x package Created: 04/May/21  Updated: 30/Mar/22

Status: Backlog
Project: Go Driver
Component/s: Error Handling
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Minor - P4
Reporter: Isabella Siu (Inactive) Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to GODRIVER-2039 Implement error helpers for generic e... Closed
is related to GODRIVER-1992 Implement ServerError interface for d... Closed

 Description   

topology and driver errors from the x package can be returned to users. We don't want to give things from x to users, so we should turn them into a mongo package error type before returning them. Also we should check to see if we are returning any other x package errors.

We could also provide more functionality in the form of helpers for users to handle returned x-package errors.



 Comments   
Comment by Benji Rewis (Inactive) [ 26/May/21 ]

https://github.com/mongodb/mongo-go-driver/pull/676

Generated at Thu Feb 08 08:37:35 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.