@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class TransactionCanceledException extends AmazonDynamoDBException
The entire transaction request was rejected.
DynamoDB will reject the entire TransactWriteItems request if any of the following is true:
A table in the TransactWriteItems request does not exist.
A table in the TransactWriteItems request is on a different account or region.
Operations contain item schema violations.
More than one write operation (UpdateItem, PutItem, DeleteItem) operates on
the same item.
More than one check operation operates on the same item.
The number of operations sent in the TransactWriteItems request is 0 or greater than 10.
A TransactWriteItems request exceeds the maximum 4 MB request size.
Any operation in the TransactWriteItems request would cause an item to become larger than 400KB.
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.