File Coverage

blib/lib/Moose/Exception/UndefinedHashKeysPassedToMethod.pm
Criterion Covered Total %
statement 5 5 100.0
branch n/a
condition n/a
subroutine 2 2 100.0
pod n/a
total 7 7 100.0


line stmt bran cond sub pod time code
1             package Moose::Exception::UndefinedHashKeysPassedToMethod;
2             our $VERSION = '2.2205';
3              
4 2     2   1797 use Moose;
  2         5  
  2         20  
5             extends 'Moose::Exception';
6              
7             has 'hash_keys' => (
8             is => 'ro',
9             isa => 'ArrayRef',
10             required => 1
11             );
12              
13             has 'method_name' => (
14             is => 'ro',
15             isa => 'Str',
16             required => 1
17             );
18              
19             sub _build_message {
20 25     25   69 my $self = shift;
21 25         923 "Hash keys passed to ".$self->method_name." must be defined";
22             }
23              
24             __PACKAGE__->meta->make_immutable;
25             1;