From 46b20085361529872af4737aa02b3c0637b61a41 Mon Sep 17 00:00:00 2001 From: Marcelo Matus Date: Thu, 12 Jan 2006 06:10:27 +0000 Subject: [PATCH] add the throws (...) typemap git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8385 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- SWIG/Lib/exception.i | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/SWIG/Lib/exception.i b/SWIG/Lib/exception.i index 7a6800bf7..d81f76cbe 100644 --- a/SWIG/Lib/exception.i +++ b/SWIG/Lib/exception.i @@ -258,6 +258,11 @@ SWIGINTERN void SWIG_CSharpException(int code, const char *msg) { } %enddef +/* rethrow the unknown exception */ + +%typemap(throws,noblock=1) (...) { + SWIG_exception(SWIG_RuntimeError,"unknown exception"); +} #endif /* __cplusplus */