try {
statement throw var;
}
throw invalid_argument("message");
catch(invalid_argument &e) {
cout << e.what();
}
catch(dataType var) {
// statement
}
catch(...) {
// statement
}