[GODRIVER-828] Create mongo.CommandError to wrap command.Error Created: 12/Feb/19  Updated: 28/Oct/23  Resolved: 20/Feb/19

Status: Closed
Project: Go Driver
Component/s: CRUD
Affects Version/s: None
Fix Version/s: 1.0.0-rc1

Type: Improvement Priority: Major - P3
Reporter: Kristofer Brandow (Inactive) Assignee: Kristofer Brandow (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Issue split
split from GODRIVER-793 Remove all public use of 'x' packages... Closed

 Description   

The command.Error type is accessed by users when they need to do manual retrying of transactions. This type is currently within the x/ directory and is likely to change or be moved in the future. As part of GODRIVER-793, wrap instances of command.Error with a newly created mongo.CommandError. This new error should have all the same fields and functionality of command.Error.



 Comments   
Comment by Githook User [ 20/Feb/19 ]

Author:

{'name': 'Kris Brandow', 'username': 'skriptble', 'email': 'kris@mongodb.com'}

Message: Add transactions examples for docs

GODRIVER-422
GODRIVER-828
GODRIVER-788

Change-Id: I5927c58c4ecf89ab8124c87066b394ca6a6b8dc8
Branch: master
https://github.com/mongodb/mongo-go-driver/commit/9ff076f5844dbdfbc027a2a2aed84b8a9726097c

Comment by Kristofer Brandow (Inactive) [ 19/Feb/19 ]

Code Review: https://review.gerrithub.io/c/mongodb/mongo-go-driver/+/444304.

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