Class ConditionFailedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
dev.hogwai.dynamodb.simplified.exception.DynamoSimplifiedException
dev.hogwai.dynamodb.simplified.exception.ConditionFailedException
- All Implemented Interfaces:
Serializable
Thrown when a conditional write (put/update/delete with a condition expression)
fails because the condition is not met.
Wraps ConditionalCheckFailedException from the AWS SDK.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConditionFailedException(@Nullable String message) Constructs a new condition failed exception with the specified detail message.ConditionFailedException(@Nullable String message, @Nullable Throwable cause) Constructs a new condition failed exception with the specified detail message and cause. -
Method Summary
Modifier and TypeMethodDescriptionstatic ConditionFailedExceptionfromSdk(software.amazon.awssdk.services.dynamodb.model.ConditionalCheckFailedException cause) Creates a ConditionFailedException from an SDKConditionalCheckFailedException.Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ConditionFailedException
Constructs a new condition failed exception with the specified detail message.- Parameters:
message- the detail message
-
ConditionFailedException
-
-
Method Details
-
fromSdk
public static ConditionFailedException fromSdk(software.amazon.awssdk.services.dynamodb.model.ConditionalCheckFailedException cause) Creates a ConditionFailedException from an SDKConditionalCheckFailedException.- Parameters:
cause- the SDK condition check failure exception- Returns:
- a new ConditionFailedException wrapping the cause
-