Arunbear has asked for the wisdom of the Perl Monks concerning the following question:
is there a way to configure Exception::Class so that Perl will show the full stracktrace without myself having to first catch the exception and then call the trace method?
i.e. I want $my_execpt->throw('error_msg') to have the same effect as confess('error_msg')I need this behaviour because there are times when I want to raise an exception (e.g. subroutine called without a required parameter) but don't want to write a handler for it - and I still need the stracktrace.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Strack traces with Exception::Class
by hardburn (Abbot) on Nov 03, 2003 at 17:24 UTC | |
by Arunbear (Prior) on Nov 03, 2003 at 21:58 UTC | |
Re: Strack traces with Exception::Class
by IlyaM (Parson) on Nov 04, 2003 at 10:24 UTC | |
by jffry (Hermit) on Dec 06, 2005 at 19:28 UTC |