File Coverage

blib/lib/Moose/Exception/InvalidAttributeDefinition.pm
Criterion Covered Total %
statement 3 3 100.0
branch n/a
condition n/a
subroutine 1 1 100.0
pod n/a
total 4 4 100.0


line stmt bran cond sub pod time code
1             package Moose::Exception::InvalidAttributeDefinition;
2              
3             # ABSTRACT: MooseX::Extended exception for invalid attribute definitions.
4              
5 1     1   688 use Moose;
  1         2  
  1         9  
6             extends 'Moose::Exception';
7             our $VERSION = '0.35';
8             with 'Moose::Exception::Role::Class';
9              
10             has 'attribute_name' => (
11             is => 'ro',
12             isa => 'Str',
13             required => 1,
14             documentation => "This exception is thrown if an attribute definition is invalid.",
15             );
16              
17             __PACKAGE__->meta->make_immutable;
18             1;
19              
20             __END__
21              
22             =pod
23              
24             =encoding UTF-8
25              
26             =head1 NAME
27              
28             Moose::Exception::InvalidAttributeDefinition - MooseX::Extended exception for invalid attribute definitions.
29              
30             =head1 VERSION
31              
32             version 0.35
33              
34             =head1 WHY NOT MOOSEX?
35              
36             This is not called C<MooseX::Exception::InvalidAttributeDefinition> because
37             L<Moose::Util>'s C<throw_exception> function assumes that all exceptions begin
38             with C<Moose::Exception::>.
39              
40             =head1 AUTHOR
41              
42             Curtis "Ovid" Poe <curtis.poe@gmail.com>
43              
44             =head1 COPYRIGHT AND LICENSE
45              
46             This software is Copyright (c) 2022 by Curtis "Ovid" Poe.
47              
48             This is free software, licensed under:
49              
50             The Artistic License 2.0 (GPL Compatible)
51              
52             =cut