Don't recommend catching java.lang.Exception #309
Labels
api: storage
Issues related to the googleapis/java-storage API.
documentation
Improvements or additions to documentation
good first issue
This issue is a good place to started contributing to this repository.
help wanted
We'd love to have community involvement on this issue.
priority: p2
Moderately-important priority. Fix may not be included in next release.
type: docs
Improvement to the documentation for an API.
https://googleapis.dev/java/google-cloud-storage/latest/com/google/cloud/storage/Blob.html#writer-com.google.cloud.storage.Storage.BlobWriteOption...-
sample code includes a catch block for java.lang.Exception. Per Effective Java et al, this is an antipattern. The sample code should catch only the actual exceptions expected to be thrown.
The text was updated successfully, but these errors were encountered: