void handleException() {
try {
throw;
} catch (const Exception1& ex) {
handleException1(ex);
} catch (const Exception2& ex) {
handleException2(ex);
}
}
void foo1() {
try {
...
} catch (...) {
handleException();
}
}
void foo2() {
try {
...
} catch (...) {
handleException();
}
}
(has been taking from wxWidgets library)
No comments:
Post a Comment