P
P
poorum2010-10-06 13:07:29
.NET
poorum, 2010-10-06 13:07:29

.NET Where can I find a table of HResult codes for IOException?

There was a problem. It is necessary to catch errors that occur when working with the file system. At the same time, most of the errors cause IOException and it is possible to separate one error from another only by the text of the exception or the HResult code. What HResult codes can IOException have (do not offer a table in MSDN - there are 16 thousand codes, they are needed only for IOException)?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
centur, 2010-10-07
@poorum

And it's not easier to interpret and process only those hresults that you know how to do, and throw the rest higher.
HRESUL has a relatively clear and documented structure
en.wikipedia.org/wiki/HRESULT
msdn.microsoft.com/en-us/library/aa378137 (VS.85).aspx
You still won't handle all exceptions...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question