Class DynamoDbException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
com.codename1.backend.dynamo.DynamoDbException
A request DynamoDB refused.
getType() is the part of the __type field after the #, for example
ConditionalCheckFailedException or ResourceNotFoundException, so a caller
can tell a failed condition from a missing table without parsing the message.
-
Constructor Summary
ConstructorsConstructorDescriptionDynamoDbException(String type, String message, int status) A refusal with DynamoDB's error type, its message and the HTTP status. -
Method Summary
Modifier and TypeMethodDescriptionintThe HTTP status of the response.getType()The error type, without the namespace prefix DynamoDB sends.booleanWhether the request failed only because a condition expression was false.Methods inherited from class Throwable
addSuppressed, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
DynamoDbException
-
-
Method Details
-
getType
The error type, without the namespace prefix DynamoDB sends. -
getStatus
public int getStatus()The HTTP status of the response. -
isConditionalCheckFailed
public boolean isConditionalCheckFailed()Whether the request failed only because a condition expression was false.
-