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