Test: [skip ci] handle std. and unknown exceptions in unit test dialog

This commit is contained in:
wmayer
2021-10-11 16:09:23 +02:00
parent 171ea709f9
commit c701c2f3d2

View File

@@ -192,6 +192,12 @@ void UnitTestDialog::on_startButton_clicked()
catch (const Base::Exception& e) {
showErrorDialog("Exception", e.what());
}
catch (const std::exception& e) {
showErrorDialog("C++ standard exception", e.what());
}
catch (...) {
showErrorDialog("Unknown exception", "Unknown exception raised");
}
ui->startButton->setEnabled(true);
}