Wider range of C# exceptions to throw. More applicable exceptions in are thrown.

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6985 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2005-02-22 22:56:18 +00:00
commit 0e0573fa01
6 changed files with 173 additions and 65 deletions

View file

@ -53,7 +53,7 @@ class string;
%typemap(typecheck) string = char *;
%typemap(throws, canthrow=1) string %{
SWIG_CSharpSetPendingException(SWIG_CSharpSystemException, $1.c_str());
SWIG_CSharpSetPendingException(SWIG_CSharpApplicationException, $1.c_str());
return $null;
%}
@ -90,7 +90,7 @@ class string;
%typemap(typecheck) const string & = char *;
%typemap(throws, canthrow=1) const string & %{
SWIG_CSharpSetPendingException(SWIG_CSharpSystemException, $1.c_str());
SWIG_CSharpSetPendingException(SWIG_CSharpApplicationException, $1.c_str());
return $null;
%}