#include #include #include "obj.h" using namespace std; int main() { try { obj ob = 10; throw ob; } catch (const obj& ob) { cout << ob << "\n"; } return EXIT_SUCCESS; }