Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Hello,
I am writing a module to use here at work and am stuck with what to do with errors.
I figure I have 2 ways of dealing with them.
1) Let the module kill the script (die) and report the error or
2) Return the error to the caller and let the caller deal with it.
Any suggestions on how to properly deal with errors would be much
appreciated.
Thanks
AM
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Errors in Module - What to do with them.
by VSarkiss (Monsignor) on Sep 26, 2001 at 23:49 UTC | |
Re: Errors in Module - What to do with them.
by suaveant (Parson) on Sep 26, 2001 at 23:43 UTC | |
Re: Errors in Module - What to do with them.
by runrig (Abbot) on Sep 26, 2001 at 23:45 UTC | |
Re: Errors in Module - What to do with them.
by Anonymous Monk on Sep 27, 2001 at 00:17 UTC |
Back to
Seekers of Perl Wisdom