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

Design and implement first-draft of custom errors for the bson, builder, and elements packages

    • Type: Icon: New Feature New Feature
    • Resolution: Gone away
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Error Handling
    • None

      The errors within the bson, builder, and elements package don't provide much information. We need to add a custom error type for each package that ensures that errors have enough information contained within to debug problems and pinpoint where a particular error originated from. For instance, the ErrTooSmall error is used in several places, we should ensure that when the equivalent message is returned with the new custom errors that it is easy to pinpoint from where this error is originating.

            Assignee:
            Unassigned Unassigned
            Reporter:
            kris.brandow@mongodb.com Kristofer Brandow (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: