Re: raise errors

2009-09-26 Thread Gabriel Genellina
En Mon, 21 Sep 2009 06:17:20 -0300, daved170 escribió: I need help with exceptions raising. My goal is to print at the outer functions all the errors including the most inner one. The default exception report contains a lot of information, you don't have to do anything special. def foo1(

Re: raise errors

2009-09-21 Thread Benjamin Kaplan
On Mon, Sep 21, 2009 at 5:17 AM, daved170 wrote: > 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 Er

Re: raise errors

2009-09-21 Thread Peter Otten
daved170 wrote: > 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): >t

Re: raise errors

2009-09-21 Thread Ulrich Eckhardt
daved170 wrote: > 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): >tr