How to except the unexpected?

Rene Pijlman reply.in.the.newsgroup at my.address.is.invalid
Sat Mar 4 12:27:10 CET 2006


Roy Smith:
>I like to create a top-level exception class to encompass all the 
>possible errors in a given module, then subclass that.  This way, if you 
>want to catch anything to goes wrong in a call, you can catch the top-level 
>exception class without having to enumerate them all.

What do you propose to do with exceptions from modules called by the given
module?

-- 
René Pijlman



More information about the Python-list mailing list