你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

TableTransactionFailedException Class

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:

message - The exception message or the response content if a message is not available.
response - The HTTP response.
value - The deserialized response value.

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:

The index of the failed TableTransactionAction.

Applies to