Package com.azure.data.tables.models
Class TableTransactionFailedException
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
- All Implemented Interfaces:
Serializable
Exception thrown for an invalid response on a transactional operation with
TableServiceError information.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionTableTransactionFailedException(String message, com.azure.core.http.HttpResponse response, TableServiceError value, Integer failedTransactionActionIndex) Initializes a new instance of theTableTransactionFailedExceptionclass. -
Method Summary
Modifier and TypeMethodDescriptionGet the index position of the failedTableTransactionActionin the collection submitted toTableClient.submitTransaction(List),TableClient.submitTransactionWithResponse(List, Duration, Context),TableAsyncClient.submitTransaction(List)orTableAsyncClient.submitTransactionWithResponse(List)which caused the transaction to fail.Methods inherited from class com.azure.data.tables.models.TableServiceException
getValueMethods inherited from class com.azure.core.exception.HttpResponseException
getResponseMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
TableTransactionFailedException
public TableTransactionFailedException(String message, com.azure.core.http.HttpResponse response, TableServiceError value, Integer failedTransactionActionIndex) Initializes a new instance of theTableTransactionFailedExceptionclass.- Parameters:
message- The exception message or the response content if a message is not available.response- The HTTP response.value- The deserialized response value.failedTransactionActionIndex- The index position of the failedTableTransactionActionin the collection submitted toTableClient.submitTransaction(List),TableClient.submitTransactionWithResponse(List, Duration, Context),TableAsyncClient.submitTransaction(List)orTableAsyncClient.submitTransactionWithResponse(List)which caused the transaction to fail. Ifnull, it means the service did not indicate whichTableTransactionActionfailed.
-
-
Method Details
-
getFailedTransactionActionIndex
Get the index position of the failedTableTransactionActionin the collection submitted toTableClient.submitTransaction(List),TableClient.submitTransactionWithResponse(List, Duration, Context),TableAsyncClient.submitTransaction(List)orTableAsyncClient.submitTransactionWithResponse(List)which caused the transaction to fail. Ifnull, it means the service did not indicate whichTableTransactionActionfailed.- Returns:
- The index of the failed
TableTransactionAction.
-