Valiant/Util/Exception/General.pm untested

filter: Statementstmt 0.0% 0 / 7 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 10 CC 1 SCAR 6.9
CC
1
Cov
0%
_build_message
2.0
BEGIN
2.0
CRAP 2.0
1 package Valiant::Util::Exception::General;
2  
3 use Moo;
4 extends 'Valiant::Util::Exception';
5  
6 has msg => (is=>'ro', required=>1);
7  
8 sub _build_message {
9 my ($self) = @_;
10 return $self->msg;
11 }
12  
13 1;
14  
15 =head1 NAME
16  
17 Valiant::Util::Exception::General - A non categorized exception
18  
19 =head1 SYNOPSIS
20  
21 throw_exception General => (msg=>'validations argument in unsupported format');
22  
23 =head1 DESCRIPTION
24  
25 A non categorized exception
26  
27 =head1 ATTRIBUTES
28  
29 =head2 msg
30  
31 Message that the exception will stringify to.
32  
33 =head2 message
34  
35 The actual exception message
36  
37 =head1 SEE ALSO
38
39 L<Valiant>
40  
41 =head1 AUTHOR
42
43 See L<Valiant>
44  
45 =head1 COPYRIGHT & LICENSE
46
47 See L<Valiant>
48  
49 =cut