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
ConstructorDescriptionTableTransactionFailedException
(String message, HttpResponse response, TableServiceError value, Integer failedTransactionActionIndex) Initializes a new instance of theTableTransactionFailedException
class. -
Method Summary
Modifier and TypeMethodDescriptionGet the index position of the failedTableTransactionAction
in 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 com.azure.core.exception.HttpResponseException
getResponse
Methods 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, HttpResponse response, TableServiceError value, Integer failedTransactionActionIndex) Initializes a new instance of theTableTransactionFailedException
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.failedTransactionActionIndex
- The index position of the failedTableTransactionAction
in 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 whichTableTransactionAction
failed.
-
-
Method Details
-
getFailedTransactionActionIndex
Get the index position of the failedTableTransactionAction
in 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 whichTableTransactionAction
failed.- Returns:
- The index of the failed
TableTransactionAction
.
-