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
    • Resolution: Fixed
    • Major
    • 2.3.6
    • 2.3.4
    • 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

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

        Activity

          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