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

 view all matches for this distribution
 view release on metacpan -  search on metacpan

( run in 0.552 second using v1.00-cache-2.02-grep-82fe00e-cpan-1925d2aa809 )