#include #include using namespace std; void function1() { try { cout << "Inside function1 1." << endl ; throw 2 ; } catch( const char* str1 ) { cout << "Inside function1 catch." << endl ; } } int main() { try { try { function1() ; } catch ( int& e1 ) { try { cout << "Integer Exception:" << e1 << endl ; throw e1 ; } catch( int& f1 ) { cout << "Integer Exception:" << e1 << endl ; throw f1 ; } } //catch } catch( int& e2 ) { cout << "Outer Integer Exception" << endl ; } return 0; }