Class ConditionFailedException

All Implemented Interfaces:
Serializable

public class ConditionFailedException extends DynamoSimplifiedException
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 Details

    • ConditionFailedException

      public ConditionFailedException(@Nullable String message)
      Constructs a new condition failed exception with the specified detail message.
      Parameters:
      message - the detail message
    • ConditionFailedException

      public ConditionFailedException(@Nullable String message, @Nullable Throwable cause)
      Constructs a new condition failed exception with the specified detail message and cause.
      Parameters:
      message - the detail message
      cause - the cause (typically a ConditionalCheckFailedException)
  • Method Details

    • fromSdk

      public static ConditionFailedException fromSdk(software.amazon.awssdk.services.dynamodb.model.ConditionalCheckFailedException cause)
      Creates a ConditionFailedException from an SDK ConditionalCheckFailedException.
      Parameters:
      cause - the SDK condition check failure exception
      Returns:
      a new ConditionFailedException wrapping the cause