Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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