Skip to content

Comments

chore: modify documentation to include failure scenario#3503

Draft
nidhiii-27 wants to merge 1 commit intomainfrom
getbucket-doc
Draft

chore: modify documentation to include failure scenario#3503
nidhiii-27 wants to merge 1 commit intomainfrom
getbucket-doc

Conversation

@nidhiii-27
Copy link
Contributor

This PR updates the Javadoc for Storage.get and related methods to clarify that a StorageException is thrown for any failure.
This is to remove confusion over when the method returns null versus when it throws an exception. Specifically, while the methods return null if a resource is definitively not found (HTTP 404), they throw a StorageException for other issues such as missing permissions (HTTP 403).

@product-auto-label product-auto-label bot added size: s Pull request size is small. api: storage Issues related to the googleapis/java-storage API. labels Feb 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: storage Issues related to the googleapis/java-storage API. size: s Pull request size is small.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant