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
|
||||
|
||||
%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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue