jk2addict has asked for the wisdom of the Perl Monks concerning the following question:
I would like to implement error handling similiar to the way that DBI does in which the consumer of the modules can choose whether the module will Carp out errors, or just stuff them into an ->errstr() method and move on.
Of course, TIMTOWTDI.
I was thinking of AUTOLOADING /carp/cluck/croak/confess/ to either stuff the error locally, or shove it into Carp depending on some other config options.
Is there a better way to do this?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Carp; errors ala DBI
by bart (Canon) on Sep 19, 2002 at 15:57 UTC | |
Carp; errors ala DBI
by rir (Vicar) on Sep 19, 2002 at 22:10 UTC | |
by pope (Friar) on Sep 20, 2002 at 05:51 UTC | |
by rir (Vicar) on Sep 21, 2002 at 01:41 UTC | |
by adrianh (Chancellor) on Sep 21, 2002 at 13:36 UTC |