Valiant/Util/Exception/InvalidFilterArgs.pm untested

filter: Statementstmt 0.0% 0 / 11 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 3 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 15 CC 1 SCAR 6.9
CC
1
Cov
0%
_build_message
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package Valiant::Util::Exception::InvalidFilterArgs;
2  
3 use Moo;
4 use Data::Dumper;
5 extends 'Valiant::Util::Exception';
6  
7 has args => (is=>'ro', required=>1);
8  
9 sub _build_message {
10 my ($self) = @_;
11 my $string = Dumper $self->args;
12 return "Arguments for a filter must be a Hashref not @{[ ref $self->args ]}. Data: $string";
13 }
14  
15 1;
16  
17 =head1 NAME
18  
19 Valiant::Util::Exception::InvalidFilterArgs - Args passed to a Filter are invalid
20  
21 =head1 SYNOPSIS
22  
23 throw_exception InvalidFilterArgs => (args=>$args);
24  
25 =head1 DESCRIPTION
26  
27 A non categorized exception
28  
29 =head1 ATTRIBUTES
30  
31 =head2 args
32  
33 Arguments actually passed
34  
35 =head1 SEE ALSO
36
37 L<Valiant>
38  
39 =head1 AUTHOR
40
41 See L<Valiant>
42  
43 =head1 COPYRIGHT & LICENSE
44
45 See L<Valiant>
46  
47 =cut