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.2203';
3              
4 3     3   2097 use Moose;
  3         7  
  3         24  
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   9 my $self = shift;
21 5         168 my $class_name = $self->class_name;
22 5         109 "Can't fix metaclass incompatibility for $class_name because it is not pristine.";
23             }
24              
25             __PACKAGE__->meta->make_immutable;
26             1;