3 ms·
Forgive my ignorance but why not wrap the fallback_algorithm() call in it's own try/catch throws a more explicit exception?? try { this_might_fail();
by snorkel 18y ago
Forgive my ignorance but why not wrap the fallback_algorithm() call in it's own try/catch throws a more explicit exception??
try {
this_might_fail();
}
catch (exception& e) {
try {
fallback_algorithm(); // throws ExceptionB
}
catch (ExceptionB& e) {
report_crash();
}
}