// runtime_error.cpp // compile with: /EHsc /GR #include #include #include using namespace std; int main( ) { // runtime_error try { locale loc( "test" ); } catch ( exception &e ) { cerr << "Caught " << e.what( ) << endl; cerr << "Type " << typeid( e ).name( ) << endl; }; }