Add Swig::DirectorException directorthrows typemap for Java

For use with a global %catches(Swig::DirectorException)
This commit is contained in:
William S Fulton 2017-11-29 18:44:37 +00:00
commit 406c7a732a
2 changed files with 6 additions and 1 deletions

View file

@ -403,6 +403,7 @@ namespace Swig {
};
// Helper method to determine if a Java throwable matches a particular Java class type
// Note side effect of clearing any pending exceptions
SWIGINTERN bool ExceptionMatches(JNIEnv *jenv, jthrowable throwable, const char *classname) {
bool matches = false;