Uploaded image for project: 'Go Driver'
  1. Go Driver
  2. GODRIVER-2744

Do not return "bsoncore" errors from the "bson" API

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Unknown Unknown
    • 2.1.0
    • Affects Version/s: None
    • Component/s: BSON
    • None
    • Major Change

      The bson API will currently return errors defined in the bsoncore package. Errors include:

      • bsoncore.ErrNilReader
      • bsoncore.ErrEmptyKey
      • bsoncore.ErrOutOfBounds
      • bsoncore.ErrElementNotFound (from Raw.LookupErr)
      • bsoncore.InsufficientBytesError (from Raw.LookupErr)
      • bsoncore.InvalidDepthTraversalError (from Raw.LookupErr)

      Since bsoncore is an unstable API, we shouldn't require users to use error values from that package to use the stable bson API. Move or replace all bsoncore error values so that the bson API only returns errors defined in the bson package.

      Definition of done:

      • All bson package APIs do not return any errors defined in the bsoncore package (or any other unstable package).

            Assignee:
            Unassigned Unassigned
            Reporter:
            matt.dale@mongodb.com Matt Dale
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated: