[Kaffe] java.io.File(Input|Output)Stream question.
Alexandre Oliva
oliva at dcc.unicamp.br
Sat Feb 13 12:26:02 PST 1999
On Feb 12, 1999, Moses DeJong <dejong at cs.umn.edu> wrote:
> On Fri, 12 Feb 1999, Patrick Tullmann wrote:
>> > The problem is that they throw a FileNotFoundException. The correct
>> > thing to do in this case is to throw an IOException.
> Do you have a better idea?
Subclass FileNotFoundException as kaffe.io.UnreadableFileException and
throw it in this case. Unless someone expects exception.getClass() to
return FileNotFoundException.class, this is completely backward
compatible.
--
Alexandre Oliva http://www.dcc.unicamp.br/~oliva aoliva@{acm.org}
oliva@{dcc.unicamp.br,gnu.org,egcs.cygnus.com,samba.org}
Universidade Estadual de Campinas, SP, Brasil
More information about the kaffe
mailing list