| 1 | package Net::SAJAX::Exception::JavaScriptEvaluation; | ||
| 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 javascript_error => ( | ||
| 28 | is => 'ro', | ||
| 29 | isa => 'JE::Object::Error', | ||
| 30 | documentation => q{The JavaScript evaluation error which occurred}, | ||
| 31 | required => 1, | ||
| 32 | ); | ||
| 33 | has javascript_string => ( | ||
| 34 | is => 'ro', | ||
| 35 | isa => 'Str', | ||
| 36 | documentation => q{The JavaScript string that was evaluated}, | ||
| 37 | required => 1, | ||
| 38 | ); | ||
| 39 | |||
| 40 | ############################################################################### | ||
| 41 | # MAKE MOOSE OBJECT IMMUTABLE | ||
| 42 | __PACKAGE__->meta->make_immutable; | ||
| 43 | |||
| 44 | 1; | ||
| 45 | |||
| 46 | __END__ |