Package com.fauna.exception
Class ContendedTransactionException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.fauna.exception.FaunaException
-
- com.fauna.exception.ServiceException
-
- com.fauna.exception.ContendedTransactionException
-
- All Implemented Interfaces:
java.io.Serializable
public class ContendedTransactionException extends ServiceException
An exception indicating that too much transaction contention occurred while executing a query.This exception is thrown when a transaction cannot proceed due to conflicts or contention with other concurrent transactions.
Extends
ServiceException
to provide detailed information about the failed query.- See Also:
ServiceException
,QueryFailure
, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ContendedTransactionException(QueryFailure response)
Constructs a newContendedTransactionException
with the specifiedQueryFailure
response.
-
Method Summary
-
Methods inherited from class com.fauna.exception.ServiceException
getErrorCode, getQueryTags, getResponse, getSchemaVersion, getStats, getStatusCode, getSummary, getTxnTs
-
-
-
-
Constructor Detail
-
ContendedTransactionException
public ContendedTransactionException(QueryFailure response)
Constructs a newContendedTransactionException
with the specifiedQueryFailure
response.- Parameters:
response
- TheQueryFailure
object containing details about the failed query.
-
-