#include <iostream> using namespace std; int main() { try { throw 20; } // // the exception type decides which catch-clause is called // catch ( int e) { cout << "An int-exception occurred. Exception Nr. " << e << endl; } catch ( double e) { cout << "An double-exception occurred. Exception Nr. " << e << endl; } catch ( ...) { cout << "the general handler " << endl; } return 0; }