exception handling/03LocalTryBlock.cpp
void superman(int power){
    try{
        if(power) throw power;
    }
    catch(int i){
        cout<<"Caught Exception #: "<<i<<"\n";
    }
}
// localize a try/catch to function
localize a try/catch to function
localize a try / catch to function
void superman(int power){
    try{
        if(power) throw power;
    }
    catch(int i){
        cout<<"Caught Exception #: "<<i<<"\n";
    }
}
void superman ( int power ) { try { if ( power ) throw power ; } catch ( int i ) { cout << " " << i << " \n " ; } }
localize a try/catch to function
localize a try / catch to function