File Coverage

lib/MooseX/DIC/PackageNotFoundException.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::PackageNotFoundException;
2              
3 5     5   2493 use Moose;
  5         13  
  5         41  
4 5     5   33848 use namespace::autoclean;
  5         12  
  5         69  
5             extends 'MooseX::DIC::ContainerException';
6              
7             has package_name => ( is=>'ro', isa=>'Str', required => 1);
8             has '+message' => ( lazy=>1,default => sub {
9             my $self = shift;
10             "Package ".($self->package_name)." was not found";
11             });
12              
13             __PACKAGE__->meta->make_immutable;
14             1;
15              
16             =head1 NAME
17              
18             MooseX::DIC::PackageNotFoundException
19              
20             =head1 DESCRIPTION
21              
22             This exception is thrown when a package is being loaded and it could not be found.