Uploaded image for project: 'Couchbase .NET client library'
  1. Couchbase .NET client library
  2. NCBC-1169

Make exception behavior more like Java SDK

    XMLWordPrintable

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.3.4
    • 2.3.6
    • None
    • None

    Description

      This ticket makes the .NET sdk return/throw similarly named exceptions for various failure states:

      1. DocumentAlreadyExistsException - an attempt to insert a doc that exists
      2. DocumentDoesNotExistException - an attempt to replace a doc that does not exist
      3. TemporaryLockFailureException - an attempt to retrieve a locked doc
      4. CasMismatchException - a doc was modified resulting in a CAS failure

      Previously, the IOperationResult.Exception field was null on these cases, however the Status field indicated the failure.

      Attachments

        For Gerrit Dashboard: NCBC-1169
        # Subject Branch Project Status CR V

        Activity

          There are no comments yet on this issue.

          People

            jmorris Jeff Morris
            jmorris Jeff Morris
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty