good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: Exceptions vs Context Objectsby rjray (Chaplain) |
on Mar 31, 2006 at 07:15 UTC ( [id://540399]=note: print w/replies, xml ) | Need Help?? |
Seems to me that the old stand-by of having the plugins/events call die, and having the dispatcher use eval when calling the event-handlers. Then you can catch the die's and react accordingly. And writers of these plugins can just use a familiar idiom to signal problems. --rjray
In Section
Seekers of Perl Wisdom
|
|