commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jörg Schaible <joerg.schai...@gmx.de>
Subject Re: [compress] A few comments
Date Thu, 19 Jun 2008 17:09:13 GMT
sebb wrote:

> On 18/06/2008, Jörg Schaible <joerg.schaible@gmx.de> wrote:

[snip]

>>  >
>>  > IOException is:
>>  > "This class is the general class of exceptions produced by failed or
>>  > interrupted I/O operations. "
>>  > One can see wrong passwords as an interrupted IO exception. For me
>>  > this are logical issues.
>>
>>
>> No, it's definitely not an InterruptedIOException. Such a beast is thrown
>> if
>>  the thread is interrupted while it is performing an IO operation. Note,
>>  that you will not see this on Windows, but on Solaris that exception can
>>  cause major headaches ;-)
>>
> 
> However, I think one could regard an incorrect password as much the
> same as a file protection error, which is surely an IOException?

IOException for sure, I just want to point out that it is a bad idea to use
*InterruptedIOException* for something different, since it is already a
very special case in the JDK ;-)

- Jörg


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Mime
View raw message