director_exception testcase warning fixes
Fixes: 'function assumed not to throw an exception but does'
This commit is contained in:
parent
a271043555
commit
6a3910690b
1 changed files with 7 additions and 7 deletions
|
|
@ -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 {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue