#include "NameList.h" int main() { NameList nl; try { nl.getName(); } catch(ArrayException& ae) { cout << "Exception: " << ae.getMsg() << endl; } try { nl.getName(); } catch(...) { cout << "Caught some exception"; } return EXIT_SUCCESS; }