private AmazonServiceException unmarshallException(String errorCode, JsonContent jsonContent) { for (JsonErrorUnmarshaller unmarshaller : unmarshallers) { if (unmarshaller.matchErrorCode(errorCode)) { try { return unmarshaller.unmarshall(jsonContent.getJsonNode()); } catch (Exception e) { LOG.info("Unable to unmarshall exception content", e); return null; } } } return null; }
@Override public AmazonServiceException unmarshall(JsonErrorResponse error) throws Exception { DuplicateProviderException e = (DuplicateProviderException) super.unmarshall(error); e.setErrorCode("DuplicateProviderException"); return e; } }
@Override public AmazonServiceException unmarshall(JsonErrorResponse error) throws Exception { ItemCollectionSizeLimitExceededException e = (ItemCollectionSizeLimitExceededException) super .unmarshall(error); e.setErrorCode("ItemCollectionSizeLimitExceededException"); return e; } }
@Override public AmazonServiceException unmarshall(JsonErrorResponse error) throws Exception { UserPoolAddOnNotEnabledException e = (UserPoolAddOnNotEnabledException) super .unmarshall(error); e.setErrorCode("UserPoolAddOnNotEnabledException"); return e; } }
@Override public AmazonServiceException unmarshall(JsonErrorResponse error) throws Exception { CloudHsmClusterInvalidConfigurationException e = (CloudHsmClusterInvalidConfigurationException) super .unmarshall(error); e.setErrorCode("CloudHsmClusterInvalidConfigurationException"); return e; } }
@Override public AmazonServiceException unmarshall(JsonErrorResponse error) throws Exception { ResourceConflictException e = (ResourceConflictException) super.unmarshall(error); e.setErrorCode("ResourceConflictException"); return e; } }
@Override public AmazonServiceException unmarshall(JsonErrorResponse error) throws Exception { UnexpectedLambdaException e = (UnexpectedLambdaException) super.unmarshall(error); e.setErrorCode("UnexpectedLambdaException"); return e; } }
@Override public AmazonServiceException unmarshall(JsonErrorResponse error) throws Exception { ResourceInUseException e = (ResourceInUseException) super.unmarshall(error); e.setErrorCode("ResourceInUseException"); return e; } }
@Override public AmazonServiceException unmarshall(JsonErrorResponse error) throws Exception { NotFoundException e = (NotFoundException) super.unmarshall(error); e.setErrorCode("NotFoundException"); return e; } }
@Override public AmazonServiceException unmarshall(JsonErrorResponse error) throws Exception { ResourceNotFoundException e = (ResourceNotFoundException) super.unmarshall(error); e.setErrorCode("ResourceNotFoundException"); return e; } }
@Override public AmazonServiceException unmarshall(JsonErrorResponse error) throws Exception { InternalErrorException e = (InternalErrorException) super.unmarshall(error); e.setErrorCode("InternalErrorException"); return e; } }
@Override public AmazonServiceException unmarshall(JsonErrorResponse error) throws Exception { NotAuthorizedException e = (NotAuthorizedException) super.unmarshall(error); e.setErrorCode("NotAuthorizedException"); return e; } }
@Override public AmazonServiceException unmarshall(JsonErrorResponse error) throws Exception { InvalidParameterException e = (InvalidParameterException) super.unmarshall(error); e.setErrorCode("InvalidParameterException"); return e; } }
@Override public AmazonServiceException unmarshall(JsonErrorResponse error) throws Exception { TableNotFoundException e = (TableNotFoundException) super.unmarshall(error); e.setErrorCode("TableNotFoundException"); return e; } }
@Override public AmazonServiceException unmarshall(JsonErrorResponse error) throws Exception { InternalErrorException e = (InternalErrorException) super.unmarshall(error); e.setErrorCode("InternalErrorException"); return e; } }
@Override public AmazonServiceException unmarshall(JsonErrorResponse error) throws Exception { InvalidImportTokenException e = (InvalidImportTokenException) super.unmarshall(error); e.setErrorCode("InvalidImportTokenException"); return e; } }
@Override public AmazonServiceException unmarshall(JsonErrorResponse error) throws Exception { InvalidMarkerException e = (InvalidMarkerException) super.unmarshall(error); e.setErrorCode("InvalidMarkerException"); return e; } }
@Override public AmazonServiceException unmarshall(JsonErrorResponse error) throws Exception { CustomKeyStoreNotFoundException e = (CustomKeyStoreNotFoundException) super .unmarshall(error); e.setErrorCode("CustomKeyStoreNotFoundException"); return e; } }
@Override public AmazonServiceException unmarshall(JsonErrorResponse error) throws Exception { ScopeDoesNotExistException e = (ScopeDoesNotExistException) super.unmarshall(error); e.setErrorCode("ScopeDoesNotExistException"); return e; } }
@Override public AmazonServiceException unmarshall(JsonErrorResponse error) throws Exception { ExternalServiceException e = (ExternalServiceException) super.unmarshall(error); e.setErrorCode("ExternalServiceException"); return e; } }