Example #1
0
 def _get_plugin(self):
     '''Bind an object to the runtime'''
     try:
         return self.__shared_state["runtime_instance"].get_plugin_for_url(self._url, self._apitype) 
     except Exception, ex:
         error = ("%s %s" % (str(ex), tback.get_traceback()))
         raise bliss.saga.Exception(bliss.saga.Error.NoSuccess, error)
Example #2
0
 def _get_plugin(self):
     '''Bind an object to the runtime'''
     try:
         return self.__shared_state["runtime_instance"].get_plugin_for_url(
             self._url, self._apitype)
     except Exception, ex:
         error = ("%s %s" % (str(ex), tback.get_traceback()))
         raise bliss.saga.Exception(bliss.saga.Error.NoSuccess, error)
Example #3
0
 def log_error_and_raise(self, error, message):
     '''Writes an ERROR to the plugin log and raises an exception'''
     msg = "[%s] %s %s" % (self.name, message, tback.get_traceback())
     self.__logger.error(message)
     raise SAGAException(error, msg)
Example #4
0
 def log_error_and_raise(self, error, message):
     '''Writes an ERROR to the plugin log and raises an exception'''
     msg = "[%s] %s %s" % (self.name, message, tback.get_traceback())
     self.__logger.error(message)
     raise SAGAException(error, msg)