File Coverage

blib/lib/Moose/Exception/InvalidImportList.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::InvalidImportList;
2              
3             # ABSTRACT: MooseX::Extended exception for import arguments.
4              
5 1     1   655 use Moose;
  1         2  
  1         6  
6             extends 'Moose::Exception';
7 1     1   7134 use MooseX::Extended::Types qw(NonEmptyStr PositiveInt);
  1         3  
  1         20  
8             our $VERSION = '0.35';
9             with 'Moose::Exception::Role::Class';
10              
11             has 'moosex_extended_type' => (
12             is => 'ro',
13             isa => NonEmptyStr,
14             required => 1,
15             documentation => "The name of the MooseX::Extended package called with the invalid import list.",
16             );
17              
18             has 'line_number' => (
19             is => 'ro',
20             isa => PositiveInt,
21             required => 1,
22             documentation => "The line number of the code throwing the exception.",
23             );
24              
25             __PACKAGE__->meta->make_immutable;
26             1;
27              
28             __END__
29              
30             =pod
31              
32             =encoding UTF-8
33              
34             =head1 NAME
35              
36             Moose::Exception::InvalidImportList - MooseX::Extended exception for import arguments.
37              
38             =head1 VERSION
39              
40             version 0.35
41              
42             =head1 WHY NOT MOOSEX?
43              
44             This is not called C<MooseX::Exception::InvalidImportList> because
45             L<Moose::Util>'s C<throw_exception> function assumes that all exceptions begin
46             with C<Moose::Exception::>.
47              
48             =head1 AUTHOR
49              
50             Curtis "Ovid" Poe <curtis.poe@gmail.com>
51              
52             =head1 COPYRIGHT AND LICENSE
53              
54             This software is Copyright (c) 2022 by Curtis "Ovid" Poe.
55              
56             This is free software, licensed under:
57              
58             The Artistic License 2.0 (GPL Compatible)
59              
60             =cut