File Coverage

blib/lib/Catalyst/Exception/MissingParameter.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 Catalyst::Exception::MissingParameter;
2              
3 2     2   16 use Moose;
  2         21  
  2         15  
4 2     2   14221 use namespace::clean -except => 'meta';
  2         6  
  2         24  
5              
6             extends 'Catalyst::Exception::StrongParameter';
7              
8             has 'param' => (is=>'ro', required=>1);
9             has '+message' => (is=>'ro', lazy=>1, default=>sub { "Required parameter '@{[ $_[0]->param ]}' is missing." });
10            
11             __PACKAGE__->meta->make_immutable;