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)
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)
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))
def exception(self, args): self.finished() from camelot.view.controls.exception import model_thread_exception_message_box model_thread_exception_message_box(args)
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()
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)
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()