[ad_1]
All standard exceptions derive from std::exception, so catch that instead:
try {
// throw exception here
}
catch (const std::exception &e) {
// handle exception here
}
[ad_2]
solved How to catch any c++ standard exception?
[ad_1]
All standard exceptions derive from std::exception, so catch that instead:
try {
// throw exception here
}
catch (const std::exception &e) {
// handle exception here
}
[ad_2]
solved How to catch any c++ standard exception?