Class IllegalDocumentState

  • All Implemented Interfaces:
    com.couchbase.client.core.cnc.Event

    public class IllegalDocumentState
    extends TransactionEvent
    Indicates that a document has been modified by a non-transactional write while it is in a transaction.

    The application must protect against this.

    • Nested Class Summary

      • Nested classes/interfaces inherited from interface com.couchbase.client.core.cnc.Event

        com.couchbase.client.core.cnc.Event.Category, com.couchbase.client.core.cnc.Event.Severity
    • Field Summary

      • Fields inherited from interface com.couchbase.client.core.cnc.Event

        CATEGORY_PREFIX
    • Constructor Summary

      Constructors 
      Constructor Description
      IllegalDocumentState​(com.couchbase.client.core.cnc.Event.Severity severity, java.lang.String msg, java.lang.String docId)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String description()  
      java.lang.String docId()  
      boolean success()
      Provided so the app check if this event is regarded as a success, and if not, output any logs it has.
      • Methods inherited from class com.couchbase.client.core.cnc.AbstractEvent

        category, context, created, createdAt, duration, severity, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface com.couchbase.client.core.cnc.Event

        cause
    • Constructor Detail

      • IllegalDocumentState

        public IllegalDocumentState​(com.couchbase.client.core.cnc.Event.Severity severity,
                                    java.lang.String msg,
                                    java.lang.String docId)
    • Method Detail

      • description

        public java.lang.String description()
      • docId

        public java.lang.String docId()
      • success

        public boolean success()
        Description copied from class: TransactionEvent
        Provided so the app check if this event is regarded as a success, and if not, output any logs it has.
        Specified by:
        success in class TransactionEvent