# from Lutz Gehlen # on Saturday 28 June 2008 04:51: >__PACKAGE__->mk_exception_functions > (messages => {foo => 'Error foo occurred.'}, > exception_class => 'Exception::Class::Mine'); > >and later just call >foo() if($foo);
This requires you to inherit from the exception class, but it installs functions instead of methods? If the only call needed is mk_exception_functions(), that could just be import(). --Eric -- Issues of control, repair, improvement, cost, or just plain understandability all come down strongly in favor of open source solutions to complex problems of any sort. --Robert G. Brown --------------------------------------------------- http://scratchcomputing.com ---------------------------------------------------