'If True, the console will catch the next unhandled exception and display the stack
trace.'

def catchNextException(self, catch=True):

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