diff --git a/Lib/exception.i b/Lib/exception.i index 7a6800bf7..d81f76cbe 100644 --- a/Lib/exception.i +++ b/Lib/exception.i @@ -258,6 +258,11 @@ SWIGINTERN void SWIG_CSharpException(int code, const char *msg) { } %enddef +/* rethrow the unknown exception */ + +%typemap(throws,noblock=1) (...) { + SWIG_exception(SWIG_RuntimeError,"unknown exception"); +} #endif /* __cplusplus */