director_exception testcase warning fixes

Fixes: 'function assumed not to throw an exception but does'
This commit is contained in:
William S Fulton 2017-05-14 01:07:14 +01:00
commit 6a3910690b

View file

@ -35,9 +35,9 @@ class DirectorMethodException: public Swig::DirectorException {};
#ifdef SWIGPHP #ifdef SWIGPHP
%feature("director:except") { %feature("director:except") {
if ($error == FAILURE) { if ($error == FAILURE) {
throw Swig::DirectorMethodException(); Swig::DirectorMethodException::raise("$symname");
} }
} }
%exception { %exception {
@ -50,9 +50,9 @@ class DirectorMethodException: public Swig::DirectorException {};
#ifdef SWIGPYTHON #ifdef SWIGPYTHON
%feature("director:except") { %feature("director:except") {
if ($error != NULL) { if ($error != NULL) {
throw Swig::DirectorMethodException(); Swig::DirectorMethodException::raise("$symname");
} }
} }
%exception { %exception {
@ -88,7 +88,7 @@ class DirectorMethodException: public Swig::DirectorException {};
#ifdef SWIGRUBY #ifdef SWIGRUBY
%feature("director:except") { %feature("director:except") {
throw Swig::DirectorMethodException($error); Swig::DirectorMethodException::raise($error);
} }
%exception { %exception {