Exception-Died
view release on metacpan or search on metacpan
lib/Exception/Died.pm view on Meta::CPAN
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.739 second using v1.01-cache-2.11-cpan-49f99fa48dc )