| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package Moose::Exception::PackagesAndModulesAreNotCachable; |
|
2
|
|
|
|
|
|
|
our $VERSION = '2.2206'; |
|
3
|
|
|
|
|
|
|
|
|
4
|
3
|
|
|
3
|
|
2151
|
use Moose; |
|
|
3
|
|
|
|
|
9
|
|
|
|
3
|
|
|
|
|
25
|
|
|
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
|
|
8
|
my $self = shift; |
|
16
|
3
|
|
|
|
|
112
|
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
|
|
|
|
|
48
|
return "Packages are not cacheable"; |
|
22
|
|
|
|
|
|
|
} |
|
23
|
|
|
|
|
|
|
} |
|
24
|
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
__PACKAGE__->meta->make_immutable; |
|
26
|
|
|
|
|
|
|
1; |