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
public final class TableTransactionFailedException extends TableServiceException
Exception thrown for an invalid response on a transactional operation withTableServiceErrorinformation.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TableTransactionFailedException(String message, com.azure.core.http.HttpResponse response, TableServiceError value, Integer failedTransactionActionIndex)Initializes a new instance of theTableTransactionFailedExceptionclass.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IntegergetFailedTransactionActionIndex()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.-
Methods inherited from class com.azure.data.tables.models.TableServiceException
getValue
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
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 Detail
-
getFailedTransactionActionIndex
public Integer 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.
-
-