Skip to content

Turn REST response exceptions into GoogleAPICallError #769

@busunkim96

Description

@busunkim96

Currently the REST transport uses response.raise_for_status() and returns the exception object from requests.

For consistency with existing libraries the response should be converted into a GoogleAPICallError.

https://github.com/googleapis/python-api-core/blob/db48ea3f8f69cd5039cdc2e35a0a3604d731bc70/google/api_core/exceptions.py#L399

Metadata

Metadata

Assignees

Labels

type: cleanupAn internal cleanup or hygiene concern.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions