Proper way to handle errors in a module

Andrew Berg bahamutzero8825 at gmail.com
Thu May 12 16:35:16 EDT 2011


On 2011.05.12 03:20 PM, Corey Richardson wrote:
> class HelloError(Exception):
>     pass
>
> Of course, there are all sorts of other things you could do with your
> exception.
>
> http://docs.python.org/tutorial/errors.html#user-defined-exceptions
So that's where that info is. I wasn't looking in the tutorial section.
Thanks!



More information about the Python-list mailing list