Skip to content
This repository was archived by the owner on Sep 25, 2026. It is now read-only.
This repository was archived by the owner on Sep 25, 2026. It is now read-only.

Don't recommend catching java.lang.Exception #309

Closed

Description

@elharo

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.

Activity

  1. added
    documentationImprovements or additions to documentation
    help wantedWe'd love to have community involvement on this issue.
    good first issueThis issue is a good place to started contributing to this repository.
    type: docsImprovement to the documentation for an API.
    priority: p2Moderately-important priority. Fix may not be included in next release.
    api: storageIssues related to the googleapis/java-storage API.
    on May 12, 2020
  2. self-assigned this
    on May 12, 2020
  3. added a commit that references this issue on May 13, 2020
    9201de5
  4. added a commit that references this issue on Jun 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

api: storageIssues related to the googleapis/java-storage API.documentationImprovements or additions to documentationgood first issueThis issue is a good place to started contributing to this repository.help wantedWe'd love to have community involvement on this issue.priority: p2Moderately-important priority. Fix may not be included in next release.type: docsImprovement to the documentation for an API.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions