lib/MooseX/DIC/PackageIsNotServiceException.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::PackageIsNotServiceException; | ||||||
2 | |||||||
3 | 5 | 5 | 1987 | use Moose; | |||
5 | 15 | ||||||
5 | 45 | ||||||
4 | 5 | 5 | 34235 | use namespace::autoclean; | |||
5 | 15 | ||||||
5 | 57 | ||||||
5 | extends 'MooseX::DIC::ContainerException'; | ||||||
6 | |||||||
7 | has package => ( is => 'ro', isa => 'Str', required => 1 ); | ||||||
8 | has '+message' => ( | ||||||
9 | lazy => 1, | ||||||
10 | default => sub { | ||||||
11 | "The package " . shift->package . " is not an injectable service"; | ||||||
12 | } | ||||||
13 | ); | ||||||
14 | |||||||
15 | __PACKAGE__->meta->make_immutable; | ||||||
16 | 1; |