diff --git a/CHANGES.current b/CHANGES.current index 44643fb8c..422b2e6d9 100644 --- a/CHANGES.current +++ b/CHANGES.current @@ -100,7 +100,7 @@ Version 1.3.28 (unreleased). UTL, this looks like: %typemap(throws) (...) { - %raise(SWIG_ErrorType(SWIG_UnknownError), "UnknownError", 0); + SWIG_exception(SWIG_RuntimeError,"unknown exception"); } diff --git a/Lib/typemaps/swigtype.swg b/Lib/typemaps/swigtype.swg index 3b1c0d4c7..cb88276be 100644 --- a/Lib/typemaps/swigtype.swg +++ b/Lib/typemaps/swigtype.swg @@ -439,7 +439,7 @@ } %typemap(throws,noblock=1) (...) { - %raise(SWIG_ErrorType(SWIG_UnknownError), "UnknownType", 0); + SWIG_exception(SWIG_RuntimeError,"unknown exception"); } /* ------------------------------------------------------------