raise errors
daved170
daved170 at gmail.com
Mon Sep 21 05:17:20 EDT 2009
Hi everybody,
I need help with exceptions raising.
My goal is to print at the outer functions all the errors including
the most inner one.
For example:
def foo1(self):
try:
foo2()
except ? :
print "outer Err at foo1" + ??
def foo2(self):
try:
error occured
except ? :
raise "inner Err at foo2"
the ? remarks that I have no idea what to use.
I would like the print to be : outer Err at foo1 , inner Err at foo1
thanks
daved
More information about the Python-list
mailing list