projects
/
profile
/
ivi
/
python-twisted.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Initial import to Tizen
[profile/ivi/python-twisted.git]
/
doc
/
historic
/
2003
/
pycon
/
deferex
/
deferex-complex-raise.py
1
class MyExc(Exception):
2
"A sample exception."
3
4
try:
5
x = 1 + 3
6
raise MyExc("I can't go on!")
7
x = x + 1
8
print x
9
except MyExc, me:
10
print 'error (',me,'). x was:', x
11
except:
12
print 'fatal error! abort!'