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:
parent
6aca241887
commit
0e0573fa01
6 changed files with 173 additions and 65 deletions
|
|
@ -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;
|
||||
%}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue