Uploaded image for project: 'Couchbase Go SDK'
  1. Couchbase Go SDK
  2. GOCBC-75

Add the ability to distinguish between expected and unexpected errors

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Major
    • 1.0.3
    • None
    • None
    • None

    Description

      Currently the only way to find out what "kind" of error is returned by GoCB is to do a string comparison, which is brittle.

      Ideally, it should return errors that can be compared against global constants like:

      if err == gocb.ERR_NOT_FOUND

      { // do something }

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              brett19 Brett Lawson
              traun Traun Leyden (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty