Skip to content

Commit

Permalink
feat: add async unsupported paramater exception (#694)
Browse files Browse the repository at this point in the history
* feat: add async unsupported paramater exception

* Update google/api_core/exceptions.py

Co-authored-by: Victor Chudnovsky <[email protected]>

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

---------

Co-authored-by: Victor Chudnovsky <[email protected]>
Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
  • Loading branch information
3 people authored Sep 10, 2024
1 parent 1c4b0d0 commit 8c137fe
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions google/api_core/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -442,6 +442,12 @@ class DeadlineExceeded(GatewayTimeout):
grpc_status_code = grpc.StatusCode.DEADLINE_EXCEEDED if grpc is not None else None


class AsyncRestUnsupportedParameterError(NotImplementedError):
"""Raised when an unsupported parameter is configured against async rest transport."""

pass


def exception_class_for_http_status(status_code):
"""Return the exception class for a specific HTTP status code.
Expand Down

0 comments on commit 8c137fe

Please sign in to comment.