List of usage examples for com.amazonaws.services.s3.model AmazonS3Exception AmazonS3Exception
public AmazonS3Exception(String message, String errorResponseXml)
From source file:org.springframework.integration.aws.support.S3RemoteFileTemplate.java
License:Apache License
@Override public boolean exists(final String path) { try {/* w w w .j a v a 2 s. co m*/ return this.sessionFactory.getSession().exists(path); } catch (IOException e) { throw new AmazonS3Exception("Failed to check the path " + path, e); } }