| 1 | package WWW::USF::Directory::Exception::MethodArguments; | ||
| 2 | |||
| 3 | 1 | ▶ | use 5.008001; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 1 | ▶ | use warnings 'all'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | |||
| 7 | ########################################################################### | ||
| 8 | # METADATA | ||
| 9 | 1 | our $AUTHORITY = 'cpan:DOUGDUDE'; | |
| 10 | 1 | our $VERSION = '0.003001'; | |
| 11 | |||
| 12 | ########################################################################### | ||
| 13 | # MOOSE | ||
| 14 | 1 | ▶ | use Moose 0.89; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 15 | 1 | ▶ | use MooseX::StrictConstructor 0.08; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 16 | |||
| 17 | ########################################################################### | ||
| 18 | # BASE CLASS | ||
| 19 | 1 | extends q{WWW::USF::Directory::Exception}; | |
| 20 | |||
| 21 | ########################################################################### | ||
| 22 | # ALL IMPORTS BEFORE THIS WILL BE ERASED | ||
| 23 | 1 | ▶ | use namespace::clean 0.04 -except => [qw(meta)]; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 24 | |||
| 25 | ########################################################################### | ||
| 26 | # ATTRIBUTES | ||
| 27 | 1 | has argument => ( | |
| 28 | is => 'ro', | ||
| 29 | isa => 'Str', | ||
| 30 | |||
| 31 | documentation => q{The argument that was invalid}, | ||
| 32 | required => 1, | ||
| 33 | ); | ||
| 34 | 1 | has argument_value => ( | |
| 35 | is => 'ro', | ||
| 36 | |||
| 37 | clearer => '_clear_argument_value', | ||
| 38 | documentation => q{The invalid value of the argument}, | ||
| 39 | predicate => 'has_argument_value', | ||
| 40 | ); | ||
| 41 | 1 | has method => ( | |
| 42 | is => 'ro', | ||
| 43 | isa => 'Str', | ||
| 44 | |||
| 45 | documentation => q{The method in which the error occurred}, | ||
| 46 | required => 1, | ||
| 47 | ); | ||
| 48 | |||
| 49 | ########################################################################### | ||
| 50 | # MAKE MOOSE OBJECT IMMUTABLE | ||
| 51 | 1 | __PACKAGE__->meta->make_immutable; | |
| 52 | |||
| 53 | 1 | 1; | |
| 54 | |||
| 55 | __END__ | ||