示例#1
0
 def initialization_exception(self, exception_info):
     """This method is called whenever an exception occurs before the event
     loop has been started, by default, this method pops up a message box to
     inform the user
     :param exception_info: a tuple (exception, traceback_print) where traceback_print
     is a string representation of the traceback
     """
     from camelot.view.controls import exception
     exception.model_thread_exception_message_box(exception_info)
示例#2
0
    def initialization_exception(self, exception_info):
        """This method is called whenever an exception occurs before the event
        loop has been started, by default, this method pops up a message box to
        inform the user
        :param exception_info: a tuple (exception, traceback_print) where traceback_print
        is a string representation of the traceback
        """
        from camelot.view.controls import exception

        exception.model_thread_exception_message_box(exception_info)
示例#3
0
 def initialization_exception(self, exception_info):
     """This method is called whenever an exception occurs before the event
     loop has been started, or if the setup of the model thread failed.  By
     default this pops up a dialog.
     
     :param exception_info: a serialized form of the exception
     """
     from camelot.view.controls import exception
     if self._splashscreen:
         self._splashscreen.hide()
     exception.model_thread_exception_message_box(exception_info)
示例#4
0
 def initialization_exception(self, exception_info):
     """This method is called whenever an exception occurs before the event
     loop has been started, or if the setup of the model thread failed.  By
     default this pops up a dialog.
     
     :param exception_info: a serialized form of the exception
     """
     from camelot.view.controls import exception
     if self._splashscreen:
         self._splashscreen.hide()
     exception.model_thread_exception_message_box(exception_info)
示例#5
0
    def setup_exception(self, exc_name, exc_trace):
        """This slot will be called when the setup of the model thread fails, eg
        in case of database connection failure"""
        from camelot.view.controls.exception import model_thread_exception_message_box

        model_thread_exception_message_box((exc_name, exc_trace))
示例#6
0
 def exception(self, args):
     self.finished()
     from camelot.view.controls.exception import model_thread_exception_message_box
     model_thread_exception_message_box(args)
示例#7
0
 def exception(self, args):
     self.finished()
     from camelot.view.controls.exception import model_thread_exception_message_box
     model_thread_exception_message_box(args)
示例#8
0
 def exception(self, exception_info):
     """Handle an exception raised by the generator"""
     from camelot.view.controls.exception import model_thread_exception_message_box
     model_thread_exception_message_box(exception_info)
     self.exit()
示例#9
0
 def exception(self, exception_info):
     from camelot.view.controls.exception import model_thread_exception_message_box
     model_thread_exception_message_box(exception_info)
     self.finished(False)
示例#10
0
 def exception( self, exception_info ):
     """Handle an exception raised by the generator"""
     from camelot.view.controls.exception import model_thread_exception_message_box
     model_thread_exception_message_box( exception_info )
     self.exit()
示例#11
0
 def exception(self, exception_info):
     from camelot.view.controls.exception import model_thread_exception_message_box
     model_thread_exception_message_box(exception_info)
     self.finished(False)
示例#12
0
 def setup_exception(self, exc_name, exc_trace):
     """This slot will be called when the setup of the model thread fails, eg
     in case of database connection failure"""
     from camelot.view.controls.exception import model_thread_exception_message_box
     model_thread_exception_message_box((exc_name, exc_trace))