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 #159Labels 🚨This issue needs some love.api: storageIssues related to the Cloud Storage API.triage meI really want to be triaged. DescriptionFrom 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.
Activityadded this to the This milestone has been deleted milestone on Sep 24, 2014tseaver commented on Oct 28, 2014 We should be able to rely on Connection.delete_bucket to raise appropriate exceptions here. silvolu commented on Oct 30, 2014 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. tseaver commented on Oct 30, 2014 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. dhermes commented 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. silvolu commented on Oct 30, 2014 Ok, so we all agree :) Docs need some fixing then. added a commit that references this issue on Oct 31, 2014This issue will close once commit 8e12e10 is merged into the 'main' branch.8e12e10
MetadataMetadata🚨This issue needs some love.api: storageIssues related to the Cloud Storage API.triage meI really want to be triaged. DevelopmentNo branches or pull requestsIssue actions
|