Skip to content

Commit

Permalink
Change the exception scope
Browse files Browse the repository at this point in the history
  • Loading branch information
arunagrawal84 committed Feb 8, 2019
1 parent bd95912 commit 1f53c5f
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
*/
package com.netflix.priam.aws;

import com.amazonaws.AmazonClientException;
import com.amazonaws.services.s3.AmazonS3;
import com.amazonaws.services.s3.model.BucketLifecycleConfiguration;
import com.amazonaws.services.s3.model.BucketLifecycleConfiguration.Rule;
Expand Down Expand Up @@ -166,7 +167,7 @@ public boolean doesRemoteFileExist(Path remotePath) throws BackupRestoreExceptio
boolean exists = false;
try {
exists = s3Client.doesObjectExist(getShard(), remotePath.toString());
} catch (Exception ex) {
} catch (AmazonClientException ex) {
// No point throwing this exception up.
logger.error(
"Exception while checking existence of object: {}. Error: {}",
Expand Down

0 comments on commit 1f53c5f

Please sign in to comment.