Example usage for com.amazonaws.services.s3.model AmazonS3Exception AmazonS3Exception

List of usage examples for com.amazonaws.services.s3.model AmazonS3Exception AmazonS3Exception

Introduction

In this page you can find the example usage for com.amazonaws.services.s3.model AmazonS3Exception AmazonS3Exception.

Prototype

public AmazonS3Exception(String message, String errorResponseXml) 

Source Link

Document

Constructs a new AmazonS3Exception with the specified message and error response xml from Amazon S3.

Usage

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);
    }
}