@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class TransactionCanceledException extends AmazonDynamoDBException
The entire transaction request was rejected.
DynamoDB rejects a TransactWriteItems request under the following circumstances:
A condition in one of the condition expressions is not met.
A table in the TransactWriteItems request is in a different account or region.
More than one action in the TransactWriteItems operation targets the same item.
There is insufficient provisioned capacity for the transaction to be completed.
An item size becomes too large (larger than 400 KB), or a local secondary index (LSI) becomes too large, or a similar validation error occurs because of changes made by the transaction.
There is a user error, such as an invalid data format.
DynamoDB rejects a TransactGetItems request under the following circumstances:
There is an ongoing TransactGetItems operation that conflicts with a concurrent PutItem,
UpdateItem, DeleteItem or TransactWriteItems request. In this case the
TransactGetItems operation fails with a TransactionCanceledException.
A table in the TransactGetItems request is in a different account or region.
There is insufficient provisioned capacity for the transaction to be completed.
There is a user error, such as an invalid data format.
AmazonServiceException.ErrorType| Constructor and Description |
|---|
TransactionCanceledException(String message)
Constructs a new TransactionCanceledException with the specified error message.
|
| Modifier and Type | Method and Description |
|---|---|
List<CancellationReason> |
getCancellationReasons()
A list of cancellation reasons.
|
void |
setCancellationReasons(Collection<CancellationReason> cancellationReasons)
A list of cancellation reasons.
|
TransactionCanceledException |
withCancellationReasons(CancellationReason... cancellationReasons)
A list of cancellation reasons.
|
TransactionCanceledException |
withCancellationReasons(Collection<CancellationReason> cancellationReasons)
A list of cancellation reasons.
|
getErrorCode, getErrorMessage, getErrorType, getHttpHeaders, getMessage, getRawResponse, getRawResponseContent, getRequestId, getServiceName, getStatusCode, setErrorCode, setErrorMessage, setErrorType, setHttpHeaders, setRawResponse, setRawResponseContent, setRequestId, setServiceName, setStatusCodeisRetryableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic TransactionCanceledException(String message)
message - Describes the error encountered.public List<CancellationReason> getCancellationReasons()
A list of cancellation reasons.
public void setCancellationReasons(Collection<CancellationReason> cancellationReasons)
A list of cancellation reasons.
cancellationReasons - A list of cancellation reasons.public TransactionCanceledException withCancellationReasons(CancellationReason... cancellationReasons)
A list of cancellation reasons.
NOTE: This method appends the values to the existing list (if any). Use
setCancellationReasons(java.util.Collection) or withCancellationReasons(java.util.Collection)
if you want to override the existing values.
cancellationReasons - A list of cancellation reasons.public TransactionCanceledException withCancellationReasons(Collection<CancellationReason> cancellationReasons)
A list of cancellation reasons.
cancellationReasons - A list of cancellation reasons.Copyright © 2019. All rights reserved.