[CDRIVER-449] Could not find useful documentation on bson_error_t Created: 29/Oct/14  Updated: 10/Aug/16  Resolved: 18/May/16

Status: Closed
Project: C Driver
Component/s: docs, errors
Affects Version/s: 1.0.2
Fix Version/s: 1.4.0

Type: Improvement Priority: Minor - P4
Reporter: Tim Dorcey Assignee: A. Jesse Jiryu Davis
Resolution: Done Votes: 0
Labels: documentation, driver, error-codes
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

html docs


Issue Links:
Related
is related to CDRIVER-644 bson_error_t's "code" is often wrong Closed

 Description   

Function calls provide error results in bson_error_t but clicking on the link for details just goes to main documentation page. Documentation of common error codes would be helpful. I presume that most error codes are not driver specific, but are returned by the mongodb and documentation can be found there. But, how is dropped network connection handled by the driver?



 Comments   
Comment by Githook User [ 20/Jul/16 ]

Author:

{u'username': u'ajdavis', u'name': u'A. Jesse Jiryu Davis', u'email': u'jesse@mongodb.com'}

Message: CDRIVER-449 rename column from "error type" to "source"
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/16f0c860f28545516f109885991b10dd0e7f401c

Comment by Githook User [ 18/May/16 ]

Author:

{u'username': u'ajdavis', u'name': u'A. Jesse Jiryu Davis', u'email': u'jesse@mongodb.com'}

Message: CDRIVER-449 link from mongoc to libbson errors page
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/ebbb535ab3edfdd0f67a6d0d43848fe99b54b62e

Comment by Githook User [ 18/May/16 ]

Author:

{u'username': u'ajdavis', u'name': u'A. Jesse Jiryu Davis', u'email': u'jesse@mongodb.com'}

Message: CDRIVER-449 document all error types
Branch: master
https://github.com/mongodb/libbson/commit/89edcc7ad7a65552139905ad4818716a2b1a8ae7

Comment by Githook User [ 16/May/16 ]

Author:

{u'username': u'ajdavis', u'name': u'A. Jesse Jiryu Davis', u'email': u'jesse@mongodb.com'}

Message: CDRIVER-449 links to "errors" page

Everywhere we'd linked to libbson's bson_error_t page, link to the C
Driver's more useful error-handling guide. The error-handling guide
itself still links to libbson's bson_error_t page if you need to see the
actual struct declaration.
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/036d9ac767f4ce6019cba7d544b7a4e9bbc059ab

Comment by Githook User [ 09/May/16 ]

Author:

{u'username': u'ajdavis', u'name': u'A. Jesse Jiryu Davis', u'email': u'jesse@mongodb.com'}

Message: CDRIVER-449 document error domains and codes
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/ef2e8aa28b9a7d66d05ea518c8fb604035e70f61

Comment by A. Jesse Jiryu Davis [ 05/May/16 ]

Note: my current code for CDRIVER-1215 introduces a new domain MONGOC_ERROR_MEMORY, make sure that's documented too.

Generated at Wed Feb 07 21:09:31 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.