-
Type: Task
-
Resolution: Duplicate
-
Priority: Major - P3
-
None
-
Affects Version/s: 1.11.6
-
Component/s: BSON
-
None
Right now bson.Raw.LookupErr can return 3 errors:
- bsoncore.ErrElementNotFound
- bsoncore.InsufficientBytesError
- bsoncore.InvalidDepthTraversalError
All of these are experimental errors, not part of the Go driver’s stable API. LookupErr would be much more useful, though, if its returned errors were part of the Go driver’s stable API.
This ticket requests that change. Ideally it would also be great to have LookupErr’s documentation (and documentation of whatever other methods) mention those specific (public) errors.
Thank you!
- duplicates
-
GODRIVER-2744 Do not return "bsoncore" errors from the "bson" API
- Backlog