From: tamouse mailing lists Date: 2012-11-17T23:59:33+09:00 Subject: Re: Question on exceptions On Sat, Nov 17, 2012 at 8:19 AM, Robert Klemme wrote: > On Sat, Nov 17, 2012 at 4:47 AM, tamouse mailing lists > wrote: >> On Fri, Nov 16, 2012 at 6:27 AM, Robert Klemme >> wrote: >>> On Fri, Nov 16, 2012 at 9:27 AM, tamouse mailing lists >>> wrote: >>> Depends on how you implement it: >> >> I know the right answer to every question is "It depends" :) > > Ah, I see you learned the most important lesson! ;-) I'm quick like that. :) >> My understanding is that one only uses exceptions for things which the >> app finds exceptional, > > ... which is a kind of tautological statement. :-) That was intended. :) But, seriously, it does bring up the question "why did (this developer) think (this situation) was exceptional to (this application)?" I don't think there can ever be a general answer to that question, which is why I asked for heuristics. > I can see these categories of errors where an exception seems appropriate to me: Great list. Thanks. > That's really hard to tell without more context. :-) Oh, yes, I know;; this is something I think I have to work out for this specific situation.