Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #7055
| Newsgroups | comp.lang.java.programmer |
|---|---|
| From | Andreas Leitgeb <avl@gamma.logic.tuwien.ac.at> |
| Subject | Re: Trying to Understand Purpose of a Catch Block for IOException in the Presence of One for FileNotFound |
| References | <0f7fb5c4-6031-4778-9ef7-de757bbdda39@m5g2000prh.googlegroups.com> <j23iht$2jl$1@dont-email.me> <ec849d69-925d-4036-bf2a-be97b66da056@j37g2000prh.googlegroups.com> |
| Message-ID | <slrnj4b03s.6gl.avl@gamma.logic.tuwien.ac.at> (permalink) |
| Date | 2011-08-12 19:35 +0000 |
KevinSimonson <kvnsmnsn@hotmail.com> wrote: > I've actually written a number of different programs trying to find > something that I can run that will throw an exception that is a > <IOException> but not a <FileNotFoundException>. Just speculating: have you tried to read a large file from an USB thumbdrive and midway disconnect the drive? Warning: that *may* damage the thumbdrive (even physically, not just the filesystem on it!), so use an old small one that you wont miss in case it's really broken afterwards. > I've opened a file for input, done a "chmod u-r <filename>" > while the program's running, ... Removing permissions after the file has been opened doesn't ever matter, anyway. Permissions are only checked at open().
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar
Trying to Understand Purpose of a Catch Block for IOException in the Presence of One for FileNotFound KevinSimonson <kvnsmnsn@hotmail.com> - 2011-08-12 08:39 -0700
Re: Trying to Understand Purpose of a Catch Block for IOException in the Presence of One for FileNotFound Knute Johnson <september@knutejohnson.com> - 2011-08-12 08:54 -0700
Re: Trying to Understand Purpose of a Catch Block for IOException in the Presence of One for FileNotFound markspace <-@.> - 2011-08-12 08:57 -0700
Re: Trying to Understand Purpose of a Catch Block for IOException in the Presence of One for FileNotFound KevinSimonson <kvnsmnsn@hotmail.com> - 2011-08-12 11:19 -0700
Re: Trying to Understand Purpose of a Catch Block for IOException in the Presence of One for FileNotFound markspace <-@.> - 2011-08-12 12:08 -0700
Re: Trying to Understand Purpose of a Catch Block for IOException in the Presence of One for FileNotFound Patricia Shanahan <pats@acm.org> - 2011-08-12 12:26 -0700
Re: Trying to Understand Purpose of a Catch Block for IOException in the Presence of One for FileNotFound Andreas Leitgeb <avl@gamma.logic.tuwien.ac.at> - 2011-08-12 19:35 +0000
Re: Trying to Understand Purpose of a Catch Block for IOException in the Presence of One for FileNotFound Patricia Shanahan <pats@acm.org> - 2011-08-12 12:31 -0700
Re: Trying to Understand Purpose of a Catch Block for IOException in the Presence of One for FileNotFound KevinSimonson <kvnsmnsn@hotmail.com> - 2011-08-12 13:10 -0700
Re: Trying to Understand Purpose of a Catch Block for IOException in the Presence of One for FileNotFound Lew <lewbloch@gmail.com> - 2011-08-12 14:27 -0700
csiph-web