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 | 5 | 5 | 2380 | use Moose; | |||
5 | 13 | ||||||
5 | 37 | ||||||
4 | 5 | 5 | 36951 | use namespace::autoclean; | |||
5 | 37055 | ||||||
5 | 29 | ||||||
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; |