'If True, the console will catch all unhandled exceptions and display the stack
trace. Each exception caught clears the last.'

def catchAllExceptions(self, catch=True):

    self.ui.catchAllExceptionsBtn.setChecked(catch)
    if catch:
        self.ui.catchNextExceptionBtn.setChecked(False)
        self.enableExceptionHandling()
        self.ui.exceptionBtn.setChecked(True)
    else:
        self.disableExceptionHandling()
