diff --git a/Lib/csharp/csharp.swg b/Lib/csharp/csharp.swg index aaec4eef5..6676c3bed 100644 --- a/Lib/csharp/csharp.swg +++ b/Lib/csharp/csharp.swg @@ -288,7 +288,7 @@ $1 = &temp; %} SWIG_CSharpThrowException(SWIG_CSharpException, error_msg); } -%typemap(throws) SWIGTYPE { +%typemap(throws) SWIGTYPE, SWIGTYPE &, SWIGTYPE * { SWIG_CSharpThrowException(SWIG_CSharpException, "C++ $1_type exception thrown"); } diff --git a/Lib/java/java.swg b/Lib/java/java.swg index ce3f05e72..868192ea9 100644 --- a/Lib/java/java.swg +++ b/Lib/java/java.swg @@ -766,7 +766,7 @@ return $null; } -%typemap(throws) SWIGTYPE { +%typemap(throws) SWIGTYPE, SWIGTYPE &, SWIGTYPE * { SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, "C++ $1_type exception thrown"); return $null; }