#include #include using namespace std; void function2() { throw 10 ; } void function1() { function2() ; } int main() { try { try { function1() ; } catch ( int& e1 ) { cout << "Integer Exception" << endl ; throw e1 ; } } catch( int& e2 ) { cout << "Outer Integer Exception" << endl ; } return 0; }