Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #5879
| Date | 2011-05-20 21:18 +0100 |
|---|---|
| From | Tim Golden <mail@timgolden.me.uk> |
| Subject | Re: List of WindowsError error codes and meanings |
| References | <4DD6AB5D.1040707@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.1859.1305922710.9059.python-list@python.org> (permalink) |
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
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: List of WindowsError error codes and meanings Tim Golden <mail@timgolden.me.uk> - 2011-05-20 21:18 +0100
csiph-web