Package com.amazonaws.services.dynamodb.model

Examples of com.amazonaws.services.dynamodb.model.ResourceNotFoundException


        // marshaller understands.
        String errorCode = parseErrorCode(json);
        if (errorCode == null || !errorCode.equals("ResourceNotFoundException"))
            return null;

        ResourceNotFoundException e = (ResourceNotFoundException)super.unmarshall(json);
       
       
        return e;
    }
View Full Code Here


                    .withProvisionedThroughput(new ProvisionedThroughputDescription()
                            .withReadCapacityUnits(20L)
                            .withWriteCapacityUnits(10L))
                    .withTableSizeBytes(1000L));
        }
        throw new ResourceNotFoundException(tableName + " is missing");
    }
View Full Code Here

        // marshaller understands.
        String errorCode = parseErrorCode(json);
        if (errorCode == null || !errorCode.equals("ResourceNotFoundException"))
            return null;

        ResourceNotFoundException e = (ResourceNotFoundException)super.unmarshall(json);
       
       
        return e;
    }
View Full Code Here

        // marshaller understands.
        String errorCode = parseErrorCode(json);
        if (errorCode == null || !errorCode.equals("ResourceNotFoundException"))
            return null;

        ResourceNotFoundException e = (ResourceNotFoundException)super.unmarshall(json);
       
       
        return e;
    }
View Full Code Here

        // marshaller understands.
        String errorCode = parseErrorCode(json);
        if (errorCode == null || !errorCode.equals("ResourceNotFoundException"))
            return null;

        ResourceNotFoundException e = (ResourceNotFoundException)super.unmarshall(json);
       
       
       
        return e;
    }
View Full Code Here

        }
    }

    @Override
    public AmazonServiceException unmarshall(JSONObject json) throws Exception {
        ResourceNotFoundException e = (ResourceNotFoundException)super.unmarshall(json);
        e.setErrorCode("ResourceNotFoundException");
       
        return e;
    }
View Full Code Here

        for (String rangeKey : items.keySet()) {
            Map<String, AttributeValue> item = items.get(rangeKey);

            if (cond.getComparisonOperator() == null) {
                throw new ResourceNotFoundException("There must be a comparisonOperator");
            }
            else if (cond.getComparisonOperator().equals("EQ")) {
                if (cond.getAttributeValueList().size() == 1) {
                    AttributeValue valueAttr = item.get(rangeKeyName);
                    String value = (getAttributeValueType(valueAttr).equals(AttributeValueType.S)) ? valueAttr.getS() : valueAttr.getN();
View Full Code Here

    // Check to make sure table with same name doesn't exist
    if (this.tables.containsKey(tableName)) {
      Table table = this.tables.get(tableName);
      result = new DescribeTableResult().withTable(table.getTableDescription());
    } else {
      throw new ResourceNotFoundException("The table '" + tableName + "' does not exist.");
    }
    return result;
  }
View Full Code Here

            startIndex = i;
            break;
          }
        }
      } else {
        throw new ResourceNotFoundException("The ExclusiveStartTableName '" + startTableName + "' doesn't exist.");
      }
    }

    // Calculate size max. depending on array size and limit
    int size = this.tableList.size();
View Full Code Here

      throw new AmazonServiceException(errors.toString());
    }

    // Check existence
    if (!this.tables.containsKey(request.getTableName())) {
      throw new ResourceNotFoundException("The table you want to delete '" + request.getTableName() + "' doesn't exist.");
    }

    // Delete Table
    Table table = tables.remove(request.getTableName());
    tableList.remove(table);
View Full Code Here

TOP

Related Classes of com.amazonaws.services.dynamodb.model.ResourceNotFoundException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.