The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
use Try::Tiny;
use Exception::Caught;
use Exception::Class qw(Ex);
use Test::More tests => 2;

try { Ex->throw }
catch { ok caught('Ex') };

try {
    try { Ex->throw }
    catch { rethrow };
}
catch {
    ok caught('Ex');
};