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?
In reply to Carp; errors ala DBI by jk2addict
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |