#include #include "DanExceptT.h" using namespace std; void Foo(); int main() { try { Foo(); } catch (DansExceptionT & e) { cout << "Caught it" << endl; } cout << "After the try catch block " << endl; return 0; } void Foo( ) { throw DansExceptionT ("This is an exception"); return; }