예제 #1
0
 def __init__(self, thread_index):
     # pylint: disable=broad-except
     self.__timeout_terminate = 1000 # TIMEOUT_TERMINATE_MIN
     try:
         self.__api = libcloudi_py.cloudi_c(thread_index)
     except Exception as exception:
         self.__rethrow_exception(exception)
     self.__timeout_terminate = self.__api.timeout_terminate()
예제 #2
0
파일: cloudi_c.py 프로젝트: ncopa/CloudI
 def __init__(self, thread_index):
     # pylint: disable=broad-except
     self.__timeout_terminate = 1000  # TIMEOUT_TERMINATE_MIN
     try:
         self.__api = libcloudi_py.cloudi_c(thread_index)
     except Exception as exception:
         self.__rethrow_exception(exception)
     self.__timeout_terminate = self.__api.timeout_terminate()
예제 #3
0
 def __init__(self, thread_index):
     self.__timeout_terminate = 1000 # TIMEOUT_TERMINATE_MIN
     exception = None
     try:
         self.__api = libcloudi_py.cloudi_c(thread_index)
     except Exception as e:
         exception = e
     if exception is not None:
         self.__rethrow_exception(exception)
     self.__timeout_terminate = self.__api.timeout_terminate()
예제 #4
0
 def __init__(self, thread_index):
     self.__timeout_terminate = 1000 # TIMEOUT_TERMINATE_MIN
     exception = None
     try:
         self.__api = libcloudi_py.cloudi_c(thread_index)
     except Exception as e:
         exception = e
     if exception is not None:
         self.__rethrow_exception(exception)
     self.__timeout_terminate = self.__api.timeout_terminate()
예제 #5
0
 def __init__(self, thread_index):
     try:
         self.__api = libcloudi_py.cloudi_c(thread_index)
     except libcloudi_py.invalid_input_exception as e:
         raise invalid_input_exception(e)
예제 #6
0
 def __init__(self, thread_index):
     # pylint: disable=broad-except
     try:
         self.__api = libcloudi_py.cloudi_c(thread_index)
     except Exception as exception:
         API.__rethrow_exception(exception)