Re: When and how to throw exceptions?

2010-04-08 Thread Aristotle Pagaltzis
* Ovid publiustemp-moduleautho...@yahoo.com [2010-04-07 09:05]: Presumably the format should try to determine the number of conversions in the format and perhaps the alias could generate a sub with a corresponding prototype like 'sub throw_io_read($$)'. That might give you a touch of

Re: When and how to throw exceptions?

2010-04-08 Thread Lutz Gehlen
Hi Ovid, On Wed, Apr 07, 2010 at 12:04:08AM -0700, Ovid wrote: --- On Wed, 7/4/10, Lutz Gehlen lrg...@gmx.net wrote: What I need a central place for is the definition of the actual error messages. With my module Exception::EasyThrow, I can write at the beginning of my module:

Re: When and how to throw exceptions?

2010-04-08 Thread Aristotle Pagaltzis
* Lutz Gehlen lrg...@gmx.net [2010-04-09 01:55]: I think that an own class for each message might be a bit of an overkill. Why? I guess that could be addressed by allowing a hash of formats and then offering the throwing site to pick one of them by setting a special field. The key here is