File Coverage

blib/lib/Data/Seek/Exception/RootUnknown.pm
Criterion Covered Total %
statement 3 12 25.0
branch n/a
condition 0 2 0.0
subroutine 1 2 50.0
pod n/a
total 4 16 25.0


line stmt bran cond sub pod time code
1             # ABSTRACT: Data::Seek Unknown Root Exception Class
2             package Data::Seek::Exception::RootUnknown;
3              
4 4     4   866 use Data::Object::Class;
  4         11991  
  4         18  
5              
6             extends 'Data::Seek::Exception';
7              
8             our $VERSION = '0.06'; # VERSION
9              
10             has 'criterion', is => 'ro';
11             has 'separator', is => 'ro';
12             has 'subject', is => 'ro';
13             has 'target', is => 'ro';
14              
15             has 'is_array', is => 'ro';
16             has 'is_ending', is => 'ro';
17             has 'is_hash', is => 'ro';
18             has 'is_match', is => 'ro';
19              
20             sub _build_message {
21 0     0     my $self = shift;
22              
23 0           my $criterion = $self->criterion;
24 0   0       my $separator = $self->separator // ' -> ';
25 0           my $subject = join $separator, @{$self->subject};
  0            
26 0           my $target = join $separator, @{$self->target};
  0            
27              
28 0           my $message = join ' ',
29             'ERROR MATCHING CRITERION (%s):',
30             'NO ROOT DATA/NODE (%s) FOUND WHILE SEEKING (%s)';
31              
32 0           return sprintf $message, $criterion, $subject, $target;
33             }
34              
35             1;
36              
37             __END__