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
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기