#include using namespace std; // define functions and classes perhaps int main() { try{ //do something throw 42; } catch (...) { cerr << "Unexpected object thown\n"; return 911; } return 0; }