Exception-Died
view release on metacpan or search on metacpan
lib/Exception/Died.pm view on Meta::CPAN
292293294295296297298299300301302303304305306307308309310311
my
$self
=
shift
;
my
$class
=
ref
$self
?
ref
$self
:
$self
;
my
$e
=
$self
->SUPER::
catch
(
@_
);
# Rebless if called as Exception::DiedDerivedClass->catch()
if
(
do
{
local
$@;
local
$SIG
{__DIE__};
eval
{
$e
->isa(__PACKAGE__) } }
and
ref
$e
ne
$class
and
$e
->{catch_can_rebless})
{
bless
$e
=>
$class
;
};
return
$e
;
};
=head1 METHODS
=over
( run in 0.894 second using v1.01-cache-2.11-cpan-49f99fa48dc )