X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Testing%2FExceptionAndPython%2Ffoo.cxx.orig;fp=Testing%2FExceptionAndPython%2Ffoo.cxx.orig;h=fbb8d5817e1d99d7741c1e4518e845bb41af0eae;hb=5473319b31bf630394e7865122f1745ecc122a4b;hp=0000000000000000000000000000000000000000;hpb=7e60dba6f39cee3c99cdc92676893a8c9d618410;p=gdcm.git diff --git a/Testing/ExceptionAndPython/foo.cxx.orig b/Testing/ExceptionAndPython/foo.cxx.orig new file mode 100644 index 00000000..fbb8d581 --- /dev/null +++ b/Testing/ExceptionAndPython/foo.cxx.orig @@ -0,0 +1,16 @@ +#include + +namespace MyError { + struct MyException { + MyException() { cout << "In exception" << endl; } + }; +} + +void Thrower(void) { + throw MyError::MyException(); +} + +void MyWrappedFunction(void) { + try { Thrower(); } + catch (MyError::MyException) { cout<<"Exception caught in caller"<