File Coverage

blib/lib/Moose/Exception/NoImmutableTraitSpecifiedForClass.pm
Criterion Covered Total %
statement 9 9 100.0
branch n/a
condition n/a
subroutine 3 3 100.0
pod n/a
total 12 12 100.0


line stmt bran cond sub pod time code
1             package Moose::Exception::NoImmutableTraitSpecifiedForClass;
2             our $VERSION = '2.2206';
3              
4 1     1   851 use Moose;
  1         4  
  1         8  
5             extends 'Moose::Exception';
6             with 'Moose::Exception::Role::Class', 'Moose::Exception::Role::ParamsHash';
7              
8 1     1   8 use Moose::Util 'find_meta';
  1         3  
  1         13  
9              
10             sub _build_message {
11 1     1   3 my $self = shift;
12 1         33 my $class = find_meta( $self->class_name );
13 1         27 "no immutable trait specified for $class";
14             }
15              
16             __PACKAGE__->meta->make_immutable;
17             1;