lib/MooseX/DIC/UnregisteredServiceException.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 6 | 6 | 100.0 |
branch | n/a | ||
condition | n/a | ||
subroutine | 2 | 2 | 100.0 |
pod | n/a | ||
total | 8 | 8 | 100.0 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package MooseX::DIC::UnregisteredServiceException; | ||||||
2 | |||||||
3 | 4 | 4 | 1584 | use Moose; | |||
4 | 8 | ||||||
4 | 24 | ||||||
4 | 4 | 4 | 25779 | use namespace::autoclean; | |||
4 | 23242 | ||||||
4 | 34 | ||||||
5 | extends 'MooseX::DIC::ContainerException'; | ||||||
6 | |||||||
7 | has service => ( is => 'ro', isa => 'Str', required => 1 ); | ||||||
8 | has '+message' => ( | ||||||
9 | lazy => 1, | ||||||
10 | default => sub { | ||||||
11 | "The service " | ||||||
12 | . shift->service | ||||||
13 | . " has been invoked but it hasn't been registered"; | ||||||
14 | } | ||||||
15 | ); | ||||||
16 | |||||||
17 | __PACKAGE__->meta->make_immutable; | ||||||
18 | 1; |