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   13 use Moose;
  2         17  
  2         11  
4 2     2   10947 use namespace::clean -except => 'meta';
  2         12  
  2         18  
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;