File Coverage

blib/lib/Moose/Exception/CannotFixMetaclassCompatibility.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::CannotFixMetaclassCompatibility;
2             our $VERSION = '2.2205';
3              
4 3     3   2447 use Moose;
  3         9  
  3         21  
5             extends 'Moose::Exception';
6             with 'Moose::Exception::Role::Class';
7              
8             has 'superclass' => (
9             is => 'ro',
10             isa => 'Object',
11             required => 1
12             );
13              
14             has 'metaclass_type' => (
15             is => 'ro',
16             isa => 'Str',
17             );
18              
19             sub _build_message {
20 5     5   10 my $self = shift;
21 5         169 my $class_name = $self->class_name;
22 5         132 "Can't fix metaclass incompatibility for $class_name because it is not pristine.";
23             }
24              
25             __PACKAGE__->meta->make_immutable;
26             1;