[Tutor] Exceptions and its error messages

jfouhy@paradise.net.nz jfouhy at paradise.net.nz
Wed May 25 13:17:00 CEST 2005


Quoting Jonas Melian <jonasmg at softhome.net>:

> How to know all the exceptions that there are? (i.e. OSError,
> ImportError)

Check the Python library reference (on python.org); section 2.4: Built-in
exceptions.

Of course, you can subclass Exception to build your own!

-- 
John.


More information about the Tutor mailing list