feat: add async unsupported paramater exception (#694)
* feat: add async unsupported paramater exception
* Update google/api_core/exceptions.py
Co-authored-by: Victor Chudnovsky <vchudnov@google.com>
* 🦉 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 <vchudnov@google.com>
Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
diff --git a/google/api_core/exceptions.py b/google/api_core/exceptions.py
index 8dc8c08..5b25d12 100644
--- a/google/api_core/exceptions.py
+++ b/google/api_core/exceptions.py
@@ -442,6 +442,12 @@
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.