Valiant/Util/Exception/BadParameters.pm

filter: Statementstmt 90.9% 10 / 11 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 2 / 2 Podpod n/a totaltotal 92.3% 12 / 13 CC 1 SCAR 0.0
CC
1
Cov
91%
_build_message
1.0
BEGIN
1.0
CRAP 1.0
« Valiant/Validates.pm ↑ Summary Valiant/Util/Exception/TooManyRows.pm »
1 package DBIx::Class::Valiant::Util::Exception::BadParameters;
2  
3 12 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 12 extends 'Valiant::Util::Exception';
5  
6 12 has [qw/related me/] => (is=>'ro', required=>1);
7  
8 1 ▶sub _build_message {
Subroutine _build_message: called CC=1 SCAR=0.1
9 1 my ($self) = @_;
10 1 return "Relationship @{[ $self->related]} on @{[ ref $self->me ]} provided bad parameters";
11 0 return $self->msg;
12 }
13  
14 12 1;
15  
16 =head1 NAME
17  
18 DBIx::Class::Valiant::Util::Exception - General bad parameter values
19  
20 =head1 SYNOPSIS
21  
22 DBIx::Class::Valiant::Util::Exception->throw(msg=>'validations argument in unsupported format');
23  
24 =head1 DESCRIPTION
25  
26 A non categorized exception
27  
28 =head1 ATTRIBUTES
29  
30 =head2 msg
31  
32 Message that the exception will stringify to.
33  
34 =head2 message
35  
36 The actual exception message
37  
38 =head1 SEE ALSO
39
40 L<Valiant>
41  
42 =head1 AUTHOR
43
44 See L<Valiant>
45  
46 =head1 COPYRIGHT & LICENSE
47
48 See L<Valiant>
49  
50 =cut
« Valiant/Validates.pm ↑ Summary Valiant/Util/Exception/TooManyRows.pm »