| 1 | package Apache::HeavyCGI::Exception; | ||
| 2 | use strict; | ||
| 3 | |||
| 4 | sub new { | ||
| 5 | my $class = shift; | ||
| 6 | bless { @_ }, $class; | ||
| 7 | } | ||
| 8 | |||
| 9 | 1; | ||
| 10 | |||
| 11 | =head1 NAME | ||
| 12 | |||
| 13 | Apache::HeavyCGI::Exception - exception class for Apache::HeavyCGI | ||
| 14 | |||
| 15 | =head1 SYNOPSIS | ||
| 16 | |||
| 17 | die Apache::HeavyCGI::Exception->new(HTTP_STATUS => status); | ||
| 18 | die Apache::HeavyCGI::Exception->new(ERROR => [error, ...]); | ||
| 19 | |||
| 20 | =head1 DESCRIPTION | ||
| 21 | |||
| 22 | The execution of the Apache::HeavyCGI::prepare method is protected by | ||
| 23 | an eval. Within that block the above mentioned exceptions can be | ||
| 24 | thrown. For a discussion of the semantics of these errors, see | ||
| 25 | L<Apache::HeavyCGI>. | ||
| 26 | |||
| 27 | You need not C<require> the Apache::HeavyCGI::Error module, it is | ||
| 28 | already required by Apache::HeavyCGI. | ||
| 29 | |||
| 30 | =cut | ||
| 31 |