]> Creatis software - gdcm.git/blob - Testing/ExceptionAndPython/foo.cxx.simpler
Fix mistypings
[gdcm.git] / Testing / ExceptionAndPython / foo.cxx.simpler
1 #include <iostream>
2
3 class MyException {
4 public:
5         MyException() { cout << "In exception" << endl; }
6 };
7
8 void Thrower(void) {
9         throw MyException();
10 }
11
12 void MyWrappedFunction(void) {
13    try { Thrower(); }
14    catch (MyException &) { cout<<"Exception caught in caller"<<endl; }
15 }