line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Moose::Exception::PackagesAndModulesAreNotCachable; |
2
|
|
|
|
|
|
|
our $VERSION = '2.2205'; |
3
|
|
|
|
|
|
|
|
4
|
3
|
|
|
3
|
|
2095
|
use Moose; |
|
3
|
|
|
|
|
13
|
|
|
3
|
|
|
|
|
23
|
|
5
|
|
|
|
|
|
|
extends 'Moose::Exception'; |
6
|
|
|
|
|
|
|
with 'Moose::Exception::Role::Class', 'Moose::Exception::Role::ParamsHash'; |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
has 'is_module' => ( |
9
|
|
|
|
|
|
|
is => 'ro', |
10
|
|
|
|
|
|
|
isa => 'Bool', |
11
|
|
|
|
|
|
|
required => 1 |
12
|
|
|
|
|
|
|
); |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
sub _build_message { |
15
|
3
|
|
|
3
|
|
7
|
my $self = shift; |
16
|
3
|
|
|
|
|
121
|
my $is_module = $self->is_module; |
17
|
|
|
|
|
|
|
|
18
|
3
|
100
|
|
|
|
12
|
if( $is_module ) { |
19
|
1
|
|
|
|
|
45
|
return "Modules are not cacheable"; |
20
|
|
|
|
|
|
|
} else { |
21
|
2
|
|
|
|
|
47
|
return "Packages are not cacheable"; |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
} |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
__PACKAGE__->meta->make_immutable; |
26
|
|
|
|
|
|
|
1; |