MVP/Error.pm

filter: Statementstmt 93.7% 15 / 16 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 80.0% 4 / 5 Podpod 0.0% 0 / 1 totaltotal 86.3% 19 / 22 CC 1 SCAR 1.8
CC
1
Cov
94%
__ANON__
2.0
BEGIN
1.0
as_string
1.0
CRAP 1.2
« MVP.pm ↑ Summary MVP/Reader/Findable.pm »
1 package Config::MVP::Error 2.200015;
2 # ABSTRACT: common exceptions class
3  
4 4 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 has message => (
7 is => 'ro',
8 isa => 'Str',
9 required => 1,
10 lazy => 1,
11 0 ▶ default => sub { $_->ident },
Subroutine __ANON__: not called CC=1 SCAR=6.9
12 4 );
13  
14 1 ▶sub as_string {
Subroutine as_string: called CC=1 SCAR=0.0
Pod undocumented
15 1 my ($self) = @_;
16 1 join qq{\n}, $self->message, "\n", $self->stack_trace;
17 }
18  
19 4 ▶use overload (q{""} => 'as_string');
Subroutine BEGIN: called CC=1 SCAR=0.0
20  
21 4 with(
22 'Throwable',
23 'Role::Identifiable::HasIdent',
24 'Role::HasMessage',
25 'StackTrace::Auto',
26 'MooseX::OneArgNew' => {
27 type => 'Str',
28 init_arg => 'ident',
29 },
30 );
31  
32 4 ▶no Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
33 4 __PACKAGE__->meta->make_immutable(inline_constructor => 0);
34 4 1;
35  
36 __END__
« MVP.pm ↑ Summary MVP/Reader/Findable.pm »