more %catches documentation

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8791 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2006-02-11 18:54:34 +00:00
commit 66bf3de6cf
3 changed files with 41 additions and 27 deletions

View file

@ -2199,7 +2199,7 @@ language when reading a C/C++ global variable. This is implementation specific.
<p>
The "throws" typemap is only used when SWIG parses a C++ method with an exception specification.
The "throws" typemap is only used when SWIG parses a C++ method with an exception specification or has the <tt>%catches</tt> feature attached to the method.
It provides a default mechanism for handling C++ methods that have declared the exceptions it will throw.
The purpose of this typemap is to convert a C++ exception into an error or exception in the target language.
It is slightly different to the other typemaps as it is based around the exception type rather than the type of a parameter or variable.