Is it possible to capture a "file not found" from another process and then return a file to that pro
Posted
by Neil N
on Stack Overflow
See other posts from Stack Overflow
or by Neil N
Published on 2010-06-08T20:02:29Z
Indexed on
2010/06/08
20:12 UTC
Read the original article
Hit count: 258
I have a legacy application that looks for files in a directory. It does not handle missing files very well. What I want to do is "capture" the file not found errors, and send another file back to the calling app instead. Similar to how you could handle a 404 error on a webserver and return something based on what the requested URL was, except on the local file system.
Is this possible? And more preferably, is it possible in .Net?
© Stack Overflow or respective owner