2011/3/24 Cédric Beust ♔ <[email protected]> > > > On Thu, Mar 24, 2011 at 10:23 AM, Josh Berry <[email protected]> wrote: > >> 2011/3/24 Cédric Beust ♔ <[email protected]>: >> > Absolutely. I think all the people who think that checked exceptions are >> a >> > "failed experiment" or a "total failure" would probably think very >> > differently if IOException and SQLException were runtime exceptions. In >> such >> > a world, runtime exceptions would be much more frequent in Java code >> bases >> > and, as a consequence, we would probably only see checked exceptions in >> > places where they are really justified, thereby magnifying their >> usefulness. >> >> Again, name a SINGLE checked exception that everyone agrees should be >> checked. >> > > FileNotFound. > > a) I neither want nor need a stacktrace (+ associated construction cost) in such a scenario
b) There may be a long chain of callers between where the exception is thrown and where it might reasonably be handled, if some of those intervening methods are generic and could also be used for other non-file operations then I certainly don't want to pollute their signatures. c) See previous discussions for my alternate design of a sane filesystem API > -- > Cédric > > > > -- > You received this message because you are subscribed to the Google Groups > "The Java Posse" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/javaposse?hl=en. > -- Kevin Wright gtalk / msn : [email protected] <[email protected]>mail: [email protected] vibe / skype: kev.lee.wright quora: http://www.quora.com/Kevin-Wright twitter: @thecoda "My point today is that, if we wish to count lines of code, we should not regard them as "lines produced" but as "lines spent": the current conventional wisdom is so foolish as to book that count on the wrong side of the ledger" ~ Dijkstra -- You received this message because you are subscribed to the Google Groups "The Java Posse" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/javaposse?hl=en.
