-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[TEST]
getObjectMetadata
should also refine FileNotFoundException
While working on a use-case in which we first check for object existence via `getObjectMetadata` before we use `putObject` in order to save bandwidth, I realized that when using the test stub the tests were failing with an `FileNotFoundException`. This was due to the fact that `getObjectMetadata` does not refine the `FileNotFoundException` like `getObject` does. This PR adds refinement of these exceptions to `getObjectMetadata` analogous to `getObject`.
- Loading branch information
Showing
2 changed files
with
15 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters