[CXX-1643] Use mongoc_uri_new_with_error for better exception messages Created: 06/Sep/18  Updated: 28/Oct/23  Resolved: 10/Sep/20

Status: Closed
Project: C++ Driver
Component/s: Implementation
Affects Version/s: 3.3.1
Fix Version/s: 3.7.0, 3.7.0-beta1

Type: Improvement Priority: Minor - P4
Reporter: Kevin Albertson Assignee: Raymund Rodriguez
Resolution: Fixed Votes: 0
Labels: neweng
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Epic Link: CXX usability improvements
Quarter: FY24Q3

 Description   

The uri constructor uses libmongoc's mongoc_uri_new here which warns a helpful message if it fails to parse. Instead, we should use mongoc_uri_new_with_error and pass that helpful error message in the exception.



 Comments   
Comment by Githook User [ 09/Sep/20 ]

Author:

{'name': 'rayangler', 'email': 'rayangler@users.noreply.github.com', 'username': 'rayangler'}

Message: CXX-1643 Replace mongoc_uri_new for better exception message (#720)
Branch: master
https://github.com/mongodb/mongo-cxx-driver/commit/81ebf665b9dc79136e83801036bab1e67dd8407f

Generated at Wed Feb 07 22:03:25 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.