GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Don't recommend catching java.lang.Exception · Issue #309 · googleapis/java-storage

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

Copy link
Copy link
Closed
#312
Closed
Don't recommend catching java.lang.Exception#309
#312
Copy link
Assignees
suraj-qlogic
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.

Description

@elharo
elharo
opened on May 12, 2020
Issue body actions

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. elharo
    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. suraj-qlogic
    self-assigned this
    on May 12, 2020
  3. gcf-merge-on-green
    closed this as completedin #312on May 13, 2020
  4. gcf-merge-on-green
    added a commit that references this issue on May 13, 2020

    docs: catch actual exception in java doc comment (#312)

    This issue will close once commit 9201de5 is merged into the 'main' branch.
    9201de5
  5. gcf-merge-on-green
    added a commit that references this issue on Jun 11, 2020

    chore: release 1.109.0 (#326)

    1e31ea0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @suraj-qlogic
    suraj-qlogic

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

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.