Class DynamoDbException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
com.codename1.backend.dynamo.DynamoDbException

public class DynamoDbException extends IOException

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 Details

    • DynamoDbException

      public DynamoDbException(String type, String message, int status)
      A refusal with DynamoDB's error type, its message and the HTTP status.
  • Method Details

    • getType

      public String 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.