Proper way to handle errors in a module

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


On 2011.05.12 02:25 PM, MRAB wrote:
> You can raise an exception wherever you like! :-)
If I raise an exception that isn't a built-in exception, I get something
like "NameError: name 'HelloError' is not defined". I don't know how to
define the exception.



More information about the Python-list mailing list