Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #5879 > unrolled thread

Re: List of WindowsError error codes and meanings

Started byTim Golden <mail@timgolden.me.uk>
First post2011-05-20 21:18 +0100
Last post2011-05-20 21:18 +0100
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: List of WindowsError error codes and meanings Tim Golden <mail@timgolden.me.uk> - 2011-05-20 21:18 +0100

#5879 — Re: List of WindowsError error codes and meanings

FromTim Golden <mail@timgolden.me.uk>
Date2011-05-20 21:18 +0100
SubjectRe: List of WindowsError error codes and meanings
Message-ID<mailman.1859.1305922710.9059.python-list@python.org>
On 20/05/2011 18:56, Andrew Berg wrote:
> This is probably somewhat off-topic, but where would I find a list of
> what each error code in WindowsError means? WindowsError is so broad
> that it could be difficult to decide what to do in an except clause.
> Fortunately, sys.exc_info()[1][0] holds the specific error code, so I
> could put in an if...elif...else clause inside the except clause if I
> needed to, but I don't know what all the different errors are.

Ultimately, only MSDN can tell you :)

But to be going on with, a combination of Python's built-in errno
module:

   http://docs.python.org/library/errno.html

and the pywin32 package's winerror module:

 
http://pywin32.hg.sourceforge.net/hgweb/pywin32/pywin32/file/236b256c13bf/win32/Lib/winerror.py

should help

TJG

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web