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