Class DocumentConcurrentlyModifiedException

All Implemented Interfaces:
OriginalMutationResult, Serializable

public class DocumentConcurrentlyModifiedException
extends CouchbaseException
implements OriginalMutationResult
Exception indicating that the document which is observed has been modified in the meantime.
Since:
1.1.0
Author:
Michael Nitschinger
See Also:
Serialized Form
  • Constructor Details

    • DocumentConcurrentlyModifiedException

      public DocumentConcurrentlyModifiedException​(String message, Long cas)
  • Method Details

    • mutationCas

      public long mutationCas()
      Description copied from interface: OriginalMutationResult
      If the originating operation used to be a mutation and was successful, this getter allows to retrieve the cas value returned.
      Specified by:
      mutationCas in interface OriginalMutationResult
      Returns:
      a long case value or an exception otherwise.