Supposing I have some general Application class definition which contains:
class Application{
public:
void Run(){
try{
....
}catch(const Exception& ex){
....
}
}
Now supposing I inherit Application from class App1:
class App1: public Application{
void Run(){
Application::Run();
throw ex;
}
}
Is there a way to catch the exception in the base class? I tried the above and it doesn't work.