]> Creatis software - gdcm.git/blob - Testing/ExceptionAndPython/foo.cxx.simpler
CONP: Alrite seems like that before gcc 2.96 ios::failure was not defined. I could...
[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 }