| 1 | package Test::Unit::Error; | ||
| 2 | BEGIN { | ||
| 3 | 6 | ▶ | $Test::Unit::Error::VERSION = '0.25_1325'; # added by dist-tools/SetVersion.pl |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | } | ||
| 5 | 6 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | 6 | ▶ | use base qw(Test::Unit::Exception); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | |||
| 8 | # This is a hack to effectively rebless an unknown user exception as a | ||
| 9 | # Test::Unit::Error, which is nice because all Test::Unit::Exceptions | ||
| 10 | # have nice stringify() methods. | ||
| 11 | sub make_new_from_error { | ||
| 12 | 0 | ▶ | my $self = shift; |
|
Subroutine
make_new_from_error: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 13 | 0 | my $ex = shift; | |
| 14 | 0 | my $object = shift; | |
| 15 | 0 | $self->new(%$ex, -object => $object); | |
| 16 | } | ||
| 17 | |||
| 18 | 6 | 1; | |
| 19 | __END__ | ||