[Tutor] error trap

Danny Yoo dyoo@hkn.eecs.berkeley.edu
Fri, 18 Jan 2002 11:55:00 -0800 (PST)


On Fri, 18 Jan 2002, kirk Bailey wrote:

> Dan, nice idea, but what if an error comes up I did not anticipate? I
> want it to send me ANY/ALL errors, so Iwant to write an exception with
> a blanket definition. This only works for exceptions I manage to
> anticipate. What about the rest?

The 'Exception' class is the root of all ev... err, that is, it's the
ancestor of every Exception --- it accounts for everything.  See:

    http://www.python.org/doc/lib/module-exceptions.html

for more information on this.