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 — Make sure storage.bucket.Bucket.delete raises proper exceptions on failure · Issue #159 · googleapis/google-cloud-python

Make sure storage.bucket.Bucket.delete raises proper exceptions on failure #159

New issue
Copy link
New issue
Copy link
Closed
#321
Closed
Make sure storage.bucket.Bucket.delete raises proper exceptions on failure#159
#321
Copy link
Assignees
tseaver
Labels
🚨This issue needs some love.api: storageIssues related to the Cloud Storage API.triage meI really want to be triaged.
Milestone
Storage Stable

Description

@dhermes
dhermes
opened on Sep 22, 2014
Issue body actions

From TODO:

    # TODO: Make sure the proper exceptions are raised.

See storage.bucket.Bucket.delete for relevant code and #146 for some context.

git blame output

b7f1b774 (JJ Geewax   2014-01-29 18:02:29 -0500 153)     # TODO: Make sure the proper exceptions are raised.

Activity

Next
  1. tseaver
    added
    api: storageIssues related to the Cloud Storage API.
    on Sep 22, 2014
  2. silvolu
    added this to the This milestone has been deleted milestone on Sep 24, 2014
  3. tseaver commented on Oct 28, 2014

    @tseaver
    tseaver
    on Oct 28, 2014
    Contributor
    More actions

    We should be able to rely on Connection.delete_bucket to raise appropriate exceptions here.

  4. silvolu commented on Oct 30, 2014

    @silvolu
    silvolu
    on Oct 30, 2014
    Contributor
    More actions

    Question on the docs: should we document raised exceptions only in the function where they are actually raised? In this case, the documented exception is raised in Connection.api_request, 2 levels down.

  5. tseaver commented on Oct 30, 2014

    @tseaver
    tseaver
    on Oct 30, 2014
    Contributor
    More actions

    Documenting exactly possible exceptions is hard to do thoroughly, because the back-end API docs don't specify which HTTP error response codes can be returned for each endpoint. Of course, at the moment, we only raise either exceptions.NotFoundError (for 404) or exceptions.ConnectionError (for any other non-2xx code), but then again, #164 promises to make that much more elaborate.

  6. dhermes commented on Oct 30, 2014

    @dhermes
    dhermes
    on Oct 30, 2014
    ContributorAuthor
    More actions

    It's not common (or really even possible) to list all exceptions raised within a method / function other than those explicitly raised. For example, a strange system failure could always produce a SystemError or OSError in ANY function.

  7. silvolu commented on Oct 30, 2014

    @silvolu
    silvolu
    on Oct 30, 2014
    Contributor
    More actions

    Ok, so we all agree :) Docs need some fixing then.

  8. tseaver
    closed this as completedin #321on Oct 31, 2014
  9. tseaver
    added a commit that references this issue on Oct 31, 2014

    Merge pull request #321 from tseaver/159-document_exceptions_for_buck…

    This issue will close once commit 8e12e10 is merged into the 'main' branch.
    8e12e10
  10. jgeewax
    modified the milestones: This milestone has been deleted, Storage Stable on Jan 30, 2015
  11. urshala
    added a commit that references this issue on Jan 17, 2020

    Merge pull request googleapis#159 from AnoojNair/master

    cbe44fc
  12. yoshi-automation
    added
    🚨This issue needs some love.
    on Apr 7, 2020
  13. 97 remaining items

  14. parthea
    added 9 commits that reference this issue on Nov 24, 2025

    test: update wheel used in tests (#159)

    0c0b0a0

    Add renovate.json (#159)

    10c0314

    chore(python): Add kokoro configs for python 3.10 samples testing (#159)

    80e7826

    fix: skip empty policy bindings in `len()` and `iter()` (#159)

    4ab3672

    test: add constraints for google-auth minimum version (#159)

    955786c

    chore: switch from flakybot to buildcop (via synth) (#159)

    7b586cf

    chore(deps): update dependency google-cloud-error-reporting to v1.2.2 (…

    8b71ae6

    Implement ``Context.call_on_commit``. (#159)

    d703a92

    Release v1.0.1 (#159)

    ad3af6d
  15. parthea
    added 6 commits that reference this issue on Mar 2, 2026

    samples: nit remove extra white space (#159)

    0f87a8a

    chore: reset docker base (via synth) (#159)

    54c5578

    Merge pull request #159 from orijtech/explicitly-declare-session-pool

    da7ad2f

    fix: raise Unimplemented error when creating temporary tables (#159)

    4edc235

    chore: release 1.0.0 (#167)

    9f78c53

    fix: expand entry names in Overview page to be more descriptive (#159)

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

Metadata

Metadata

Assignees

  • @tseaver
    tseaver

Labels

🚨This issue needs some love.api: storageIssues related to the Cloud Storage API.triage meI really want to be triaged.

Type

No type

Projects

No projects

    Milestone

    • Storage Stable

    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.