Class TransactionFailedException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.couchbase.client.core.error.CouchbaseException
-
- com.couchbase.client.java.transactions.error.TransactionFailedException
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
TransactionCommitAmbiguousException
,TransactionExpiredException
public class TransactionFailedException extends CouchbaseException
The transaction failed to reach the Committed point. No actors can see any changes made by this transaction.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TransactionFailedException​(com.couchbase.client.core.error.transaction.internal.CoreTransactionFailedException e)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<com.couchbase.client.core.cnc.events.transaction.TransactionLogEvent>
logs()
An in-memory log is built up during each transaction.String
transactionId()
-
Methods inherited from class com.couchbase.client.core.error.CouchbaseException
context, getMessage
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Method Detail
-
logs
public List<com.couchbase.client.core.cnc.events.transaction.TransactionLogEvent> logs()
An in-memory log is built up during each transaction. The application may want to write this to their own logs, for example upon transaction failure.
-
transactionId
public String transactionId()
-
-