示例#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)
 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)