def handle_exception(self, *args):
        """
        Handles given exception.

        :param \*args: Arguments.
        :type \*args: \*
        """

        if not self.__enabled:
            return

        cls, instance, trcback = foundations.exceptions.extract_exception(*args)

        LOGGER.info("{0} | Handling '{1}' exception!".format(
            self.__class__.__name__, foundations.strings.to_string(cls)))

        self.__initialize_context_ui()

        self.__update_html(self.format_html_exception(cls, instance, trcback))

        self.show()
        self.__report and self.report_exception_to_crittercism(cls, instance, trcback)
        foundations.exceptions.base_exception_handler(cls, instance, trcback)
        self.exec_()
def handle_exception ( self , * args ) : if not self . __enabled : return cls , instance , trcback = foundations . exceptions . extract_exception ( * args ) LOGGER . info ( "{0} | Handling '{1}' exception!" . format ( self . __class__ . __name__ , foundations . strings . to_string ( cls ) ) ) self . __initialize_context_ui ( ) self . __update_html ( self . format_html_exception ( cls , instance , trcback ) ) self . show ( ) self . __report and self . report_exception_to_crittercism ( cls , instance , trcback ) foundations . exceptions . base_exception_handler ( cls , instance , trcback ) self . exec_ ( )
Handles given exception.

        :param \*args: Arguments.
        :type \*args: \*