Class OperationFailedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
dev.hogwai.dynamodb.simplified.exception.DynamoSimplifiedException
dev.hogwai.dynamodb.simplified.exception.OperationFailedException
- All Implemented Interfaces:
Serializable
Thrown when a DynamoDB operation fails due to a service-side error.
Wraps SDK exceptions such as
ProvisionedThroughputExceededException,
ResourceNotFoundException,
InternalServerErrorException,
and DynamoDbException.
The original SDK exception is available via Throwable.getCause().
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionOperationFailedException(@NonNull String operation, @Nullable String tableName, @NonNull Throwable cause) Wraps an SDK DynamoDbException with a descriptive message. -
Method Summary
Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
OperationFailedException
public OperationFailedException(@NonNull String operation, @Nullable String tableName, @NonNull Throwable cause) Wraps an SDK DynamoDbException with a descriptive message.- Parameters:
operation- the operation being performed (e.g., "Query", "PutItem")tableName- the table name, or null if not applicablecause- the SDK exception
-