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