Details on exceptions

John Roth newsgroups at jhrothjr.com
Thu Nov 20 21:20:14 EST 2003


"Derek Fountain" <nomail at hursley.ibm.com> wrote in message
news:3fbd7509$0$1749$5a62ac22 at freenews.iinet.net.au...
> Are the details of the builtin exceptions laid out anywhere? I was looking
> though the O'Reilly Nutshell book, which informs me that errors with file
> objects raise the builtin exception IOError. However, it doesn't describe
> this exception in the same way it describes, for example, the OSError
> exception. How do I get the actual error code from IOError of what went
> wrong?
>
> I did a search on the Python docs, and couldn't find the information
either.
> So either the information is well hidden for some reason, or I've missed
> some very important information on the standardisation of exception
> handling techniques.

Library Reference, Built-in Exceptions will tell you
everything you want to know.

John Roth






More information about the Python-list mailing list