- recover the proper catching exception mechanism for classes

(throw typemap).

- fix the examples with exception problems and warnings

- proper and consist treatment of basic types (short, unsigned char,...)

  now all are checked for range and sign. Before, this was depending of
  the use of parsing or no parsing, and/or the converter method, and/or
  the use of directors, etc.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5659 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2004-01-21 01:15:10 +00:00
commit 54737ee9a9
8 changed files with 459 additions and 243 deletions

View file

@ -1,21 +1,21 @@
import exception_order
from exception_order import *
a = exception_order.A()
a = A()
try:
a.foo()
except RuntimeError,e:
if e.args[0] != "E1":
print "bad exception order",
raise RuntimeError, e.args
except E1,e:
pass
except:
raise RuntimeError, "bad exception order"
try:
a.bar()
except RuntimeError,e:
if e.args[0] != "E2":
print "bad exception order",
raise RuntimeError, e.args
except E2,e:
pass
except:
raise RuntimeError, "bad exception order"
try:
a.foobar()