Re: When and how to throw exceptions?

2010-03-12 Thread Aristotle Pagaltzis
Hi Lutz, * Lutz Gehlen lrg...@gmx.net [2010-02-21 01:40]: 1) The first question deals with how to throw exceptions properly. In projects which ask for a more sophisticated way than just carping or croaking I use Exception::Class. However, in both cases the error message has to be assembled

Re: When and how to throw exceptions?

2010-03-12 Thread Dave Rolsky
On Fri, 12 Mar 2010, Aristotle Pagaltzis wrote: I’m sure you can already imagine where this is going: basically, you should check your own intermediate computed values, to ensure you don’t propagate error conditions sideways between parts of your own code. But if you operate on user input