[GODRIVER-2039] Implement error helpers for generic errors Created: 08/Jun/21  Updated: 11/Jun/21  Resolved: 11/Jun/21

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

Type: Improvement Priority: Minor - P4
Reporter: Benji Rewis (Inactive) Assignee: Unassigned
Resolution: Won't Do Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to GODRIVER-1991 Investigate how to handle errors from... Backlog
is related to GODRIVER-1992 Implement ServerError interface for d... Closed

 Description   

Implement generic error helpers in mongo/errors.go: HasErrorMessage, HasErrorCode and HasErrorLabels. These functions should take a generic error and try to access Message, Code and Labels fields if they exist.


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