~ubuntu-branches/ubuntu/edgy/swig1.3/edgy

« back to all changes in this revision

Viewing changes to Examples/python/exception/runme.py

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2005-01-10 09:48:52 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20050110094852-axi555axhj1brbwq
Tags: 1.3.22-5ubuntu2
Build using python2.4 and pike7.6. Closes: #4146.

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
 
7
7
t = example.Test()
8
8
try:
 
9
      t.unknown()
 
10
except RuntimeError,e:
 
11
      print "incomplete type", e.args[0]
 
12
 
 
13
try:
9
14
      t.simple()
10
15
except RuntimeError,e:
11
16
      print e.args[0]
27
32
            print e.args[0]
28
33
      except example.Exc,e:
29
34
            print e.code, e.msg
 
35
 
 
36