Class ResourceNotFoundException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
dev.hogwai.dynamodb.simplified.exception.DynamoSimplifiedException
dev.hogwai.dynamodb.simplified.exception.ResourceNotFoundException
- All Implemented Interfaces:
Serializable
Thrown when a DynamoDB operation fails because the requested resource
(table, item, index, etc.) was not found.
Wraps ResourceNotFoundException
from the AWS SDK.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionResourceNotFoundException(String operation, @Nullable String tableName, software.amazon.awssdk.awscore.exception.AwsServiceException cause) Constructs a new resource not found exception for the given operation and table. -
Method Summary
Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ResourceNotFoundException
public ResourceNotFoundException(String operation, @Nullable String tableName, software.amazon.awssdk.awscore.exception.AwsServiceException cause) Constructs a new resource not found exception for the given operation and table.- Parameters:
operation- the operation being performed (e.g., "Query", "PutItem")tableName- the table name, or null if not applicablecause- the SDKAwsServiceException
-