McA has asked for the wisdom of the Perl Monks concerning the following question:
Hi Monks,
can anybody give me advice on the following issue:
To throw exceptions in modules which will be used by others, should I use die or Carp::croak? And when then why?
I have the feeling that reporting the file and line number of the module (using die) exposes some kind of implementation detail which should be hidden, isn't it?
Best regards
McA
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: die or croak
by moritz (Cardinal) on Aug 09, 2013 at 19:26 UTC | |
by Corion (Patriarch) on Aug 09, 2013 at 19:28 UTC | |
by McA (Priest) on Aug 09, 2013 at 19:32 UTC | |
by Corion (Patriarch) on Aug 09, 2013 at 19:44 UTC | |
by McA (Priest) on Aug 09, 2013 at 20:21 UTC | |
by McA (Priest) on Aug 09, 2013 at 19:35 UTC |
Back to
Seekers of Perl Wisdom