TableTransactionFailedException Class
- java.
lang. Object - java.
lang. Throwable - java.
lang. Exception - java.
lang. RuntimeException - com.
azure. core. exception. AzureException - com.
azure. core. exception. HttpResponseException - com.
azure. data. tables. models. TableServiceException - com.
azure. data. tables. models. TableTransactionFailedException
- com.
- com.
- com.
- com.
- java.
- java.
- java.
public final class TableTransactionFailedException
extends TableServiceException
Exception thrown for an invalid response on a transactional operation with TableServiceError information.
Constructor Summary
Constructor | Description |
---|---|
TableTransactionFailedException(String message, HttpResponse response, TableServiceError value, Integer failedTransactionActionIndex) |
Initializes a new instance of the TableTransactionFailedException class. |
Method Summary
Modifier and Type | Method and Description |
---|---|
Integer |
getFailedTransactionActionIndex()
Get the index position of the failed TableTransactionAction in the collection submitted to submitTransaction(List<TableTransactionAction> transactionActions), submitTransactionWithResponse(List<TableTransactionAction> transactionActions, Duration timeout, Context context), submitTransaction(List<TableTransactionAction> transactionActions) or submitTransactionWithResponse(List<TableTransactionAction> transactionActions) which caused the transaction to fail. |
Methods inherited from HttpResponseException
Methods inherited from TableServiceException
Methods inherited from java.lang.Object
Methods inherited from java.lang.Throwable
Constructor Details
TableTransactionFailedException
public TableTransactionFailedException(String message, HttpResponse response, TableServiceError value, Integer failedTransactionActionIndex)
Initializes a new instance of the TableTransactionFailedException class.
Parameters:
null
, it means the service did not indicate which
TableTransactionAction failed.
Method Details
getFailedTransactionActionIndex
public Integer getFailedTransactionActionIndex()
Get the index position of the failed TableTransactionAction in the collection submitted to submitTransaction(List<TableTransactionAction> transactionActions), submitTransactionWithResponse(List<TableTransactionAction> transactionActions, Duration timeout, Context context), submitTransaction(List<TableTransactionAction> transactionActions) or submitTransactionWithResponse(List<TableTransactionAction> transactionActions) which caused the transaction to fail. If null
, it means the service did not indicate which TableTransactionAction failed.
Returns:
Applies to
Azure SDK for Java