Package com.amazonaws.services.dynamodb.model

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


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

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


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

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

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

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

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

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

        }
    }

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

    KeySchemaElement hashKey = table.getKeySchema().getHashKeyElement();
    KeySchemaElement rangeKey = table.getKeySchema().getRangeKeyElement();
    AttributeValue hashItem = request.getItem().get(hashKey.getAttributeName());
    AttributeValueType hashItemType = getAttributeValueType(hashItem);
    if (hashItem == null || hashItemType != AttributeValueType.fromString(hashKey.getAttributeType())) {
      throw new InternalServerErrorException("Missing hash key (" + hashKey.getAttributeName() + ") from item: " + request.getItem());
    }
    if (rangeKey != null) {
      AttributeValue rangeItem = request.getItem().get(rangeKey.getAttributeName());
      AttributeValueType rangeItemType = getAttributeValueType(rangeItem);
      if (rangeItem == null || rangeItemType != AttributeValueType.fromString(rangeKey.getAttributeType())) {
        throw new InternalServerErrorException("Missing range key (" + rangeKey.getAttributeName() + ") from item: " + request.getItem());
      }
    }

    // Get current item if it exists
//    Map<String, AttributeValue> item = table.getItem(getKeyValue(request.getItem().get(table.getHashKeyName())));
View Full Code Here

  public InternalServerErrorException createInternalServerException(List<Error> errors) {
    String message = "The following Errors occured: ";
    for (Error error : errors) {
      message += error.getMessage() + "\n";
    }
    return new InternalServerErrorException(message);
  }
View Full Code Here

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

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

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

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

TOP

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

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.