| 1 | package Net::SAJAX::Exception::Response; | ||
| 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 response => ( | ||
| 28 | is => 'ro', | ||
| 29 | isa => 'HTTP::Response', | ||
| 30 | documentation => q{The HTTP response that causes the error}, | ||
| 31 | required => 1, | ||
| 32 | ); | ||
| 33 | |||
| 34 | ############################################################################### | ||
| 35 | # MAKE MOOSE OBJECT IMMUTABLE | ||
| 36 | __PACKAGE__->meta->make_immutable; | ||
| 37 | |||
| 38 | 1; | ||
| 39 | |||
| 40 | __END__ |