Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
use CGI::Carp (fatalsToBrowser);
If I make a mistake, or if there's a runtime error, it tells me.
But, if an error occurs within a class method, like:
$obj->method();
The app silently dies. Processing just stops at that point, no error on the page.
This seems to be true whenever I make a mistake in a class method, regardless of the mistake. My question is, is this normal for perl oo? I haven't done much oo stuff in perl. Silent pavlovian errors are just too impractical.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Class methods die silently?
by perrin (Chancellor) on Sep 22, 2003 at 22:23 UTC | |
by Anonymous Monk on Sep 22, 2003 at 23:47 UTC | |
by perrin (Chancellor) on Sep 23, 2003 at 01:29 UTC | |
by Anonymous Monk on Sep 23, 2003 at 02:20 UTC | |
|
Re: Class methods die silently?
by Cody Pendant (Prior) on Sep 23, 2003 at 02:33 UTC |