File Coverage

blib/lib/Moose/Exception/IllegalMethodTypeToAddMethodModifier.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::IllegalMethodTypeToAddMethodModifier;
2             our $VERSION = '2.2205';
3              
4 2     2   1139 use Moose;
  2         5  
  2         35  
5             extends 'Moose::Exception';
6              
7             has 'class_or_object' => (
8             is => 'ro',
9             isa => "Any",
10             required => 1,
11             );
12              
13             has 'params' => (
14             is => 'ro',
15             isa => 'ArrayRef',
16             required => 1,
17             );
18              
19             has 'modifier_name' => (
20             is => 'ro',
21             isa => 'Str',
22             required => 1
23             );
24              
25             sub _build_message {
26 2     2   5 my $self = shift;
27 2         78 "Methods passed to ".$self->modifier_name." must be provided as a list, arrayref or regex, not ".$self->params->[0];
28             }
29              
30             __PACKAGE__->meta->make_immutable;
31             1;