perl-Test-Exception provides modules for testing exception based code.
This requires perl-Sub-Uplevel.