[GODRIVER-337] Allow option.Optioner to return an error Created: 04/Apr/18  Updated: 19/Apr/18  Resolved: 19/Apr/18

Status: Closed
Project: Go Driver
Component/s: Options & Configuration
Affects Version/s: 0.0.2
Fix Version/s: 0.0.4

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

Issue Links:
Depends
is depended on by GODRIVER-350 Change OptWriteConcern to directly wr... Closed
Related
is related to GODRIVER-272 Implement redesigned options for the ... Closed

 Description   

The option.Optioner type currently does not return an option, which causes problems for types like WriteConcern that can return an error when marshaling to BSON. Update the option.Optioner type to return an error and update all implementations to return an error.



 Comments   
Comment by Kristofer Brandow (Inactive) [ 19/Apr/18 ]

Code Review: https://review.gerrithub.io/c/408384/.

Comment by Githook User [ 19/Apr/18 ]

Author:

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

Message: Update option.Optioner to return an error

GODRIVER-337

Change-Id: Ib887a27c2b718face8d9819ff605e99559c328ff
Branch: master
https://github.com/mongodb/mongo-go-driver/commit/f50d9744e6a0f7b78a8b6a0a0693c2502d93e33c

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