File Coverage

blib/lib/Moose/Exception/UnableToRecognizeDelegateMetaclass.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 Moose::Exception::UnableToRecognizeDelegateMetaclass;
2             our $VERSION = '2.2206';
3              
4 1     1   864 use Moose;
  1         3  
  1         8  
5             extends 'Moose::Exception';
6             with 'Moose::Exception::Role::Attribute';
7              
8             has 'delegate_metaclass' => (
9             is => 'ro',
10             isa => 'Any',
11             required => 1
12             );
13              
14             sub _build_message {
15 2     2   4 my $self = shift;
16 2         79 my $meta = $self->delegate_metaclass;
17              
18 2         53 return "Unable to recognize the delegate metaclass '$meta'";
19             }
20              
21             __PACKAGE__->meta->make_immutable;
22             1;