File Coverage

blib/lib/Moose/Exception/CannotMakeMetaclassCompatible.pm
Criterion Covered Total %
statement 3 7 42.8
branch n/a
condition n/a
subroutine 1 2 50.0
pod n/a
total 4 9 44.4


line stmt bran cond sub pod time code
1             package Moose::Exception::CannotMakeMetaclassCompatible;
2             our $VERSION = '2.2205';
3              
4 2     2   1524 use Moose;
  2         6  
  2         18  
5             extends 'Moose::Exception';
6             with 'Moose::Exception::Role::Class';
7              
8             has 'superclass_name' => (
9             is => 'ro',
10             isa => 'Str',
11             required => 1
12             );
13              
14             sub _build_message {
15 0     0     my $self = shift;
16 0           my $class_name = $self->class_name;
17 0           my $superclass = $self->superclass_name;
18              
19 0           return "Can't make $class_name compatible with metaclass $superclass";
20             }
21              
22             __PACKAGE__->meta->make_immutable;
23             1;