Ejemplo n.º 1
0
 def map_exceptions_wrapper(*args, **kwargs):
     try:
         return func(*args, **kwargs)
     except _exceptions.HttpError as e:
         raise exceptions.from_exception(e)
     except _exceptions.ClientException as e:
         raise exceptions.SDKException(message=e.message, cause=e)
Ejemplo n.º 2
0
 def map_exceptions_wrapper(*args, **kwargs):
     try:
         return func(*args, **kwargs)
     except _exceptions.HttpError as e:
         raise exceptions.from_exception(e)
     except _exceptions.ClientException as e:
         raise exceptions.SDKException(message=e.message, cause=e)