Class PreviousOperationFailedException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.couchbase.client.core.error.CouchbaseException
-
- com.couchbase.client.core.error.transaction.PreviousOperationFailedException
-
- All Implemented Interfaces:
Serializable
public class PreviousOperationFailedException extends CouchbaseException
A previous operation in the application's lambda failed, and so the currently-attempt operation is also not permitted to proceed. This is most likely thrown in one of these two scenarios: 1. The application is performing multiple operations in parallel and one of them has failed. For performance it is best to fail all other operations immediately (the transaction is not going to commit anyway), so can get to the fail and possibly retry point as soon as possible. 2. The application is erroneously catching and not propagating exceptions in the lambda.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PreviousOperationFailedException()
-
Method Summary
-
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
-
-