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.2203';
3              
4 1     1   626 use Moose;
  1         2  
  1         6  
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         2  
  1         8  
9              
10             sub _build_message {
11 1     1   2 my $self = shift;
12 1         30 my $class = find_meta( $self->class_name );
13 1         24 "no immutable trait specified for $class";
14             }
15              
16             __PACKAGE__->meta->make_immutable;
17             1;