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