apigateway / check_exceptions.py
jebin2's picture
retry logic
ec0e527
raw
history blame
474 Bytes
try:
from google.api_core import exceptions
print("google.api_core.exceptions found")
print(f"ResourceExhausted: {exceptions.ResourceExhausted}")
print(f"Unauthenticated: {exceptions.Unauthenticated}")
print(f"PermissionDenied: {exceptions.PermissionDenied}")
except ImportError:
print("google.api_core.exceptions NOT found")
try:
from google import genai
print("google.genai found")
except ImportError:
print("google.genai NOT found")