]> Creatis software - gdcm.git/blob - Testing/ExceptionAndPython/foo.cxx.orig
'File Meta Information Version' has a mandatory length of 2.
[gdcm.git] / Testing / ExceptionAndPython / foo.cxx.orig
1 #include <iostream>
2
3 namespace MyError {
4         struct MyException {
5                 MyException() { cout << "In exception" << endl; }
6         };
7 }
8
9 void Thrower(void) {
10         throw MyError::MyException();
11 }
12
13 void MyWrappedFunction(void) {
14    try { Thrower(); }
15    catch (MyError::MyException) { cout<<"Exception caught in caller"<<endl; }
16 }