| 1 | package Articulate::Error::Internal; | ||
| 2 | 9 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | 9 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | |||
| 5 | 9 | ▶ | use Moo; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | 9 | extends 'Articulate::Error'; | |
| 7 | |||
| 8 | =head1 NAME | ||
| 9 | |||
| 10 | Articulate::Error::Internal - represent an error arising due to a fault in the configuration of the server | ||
| 11 | |||
| 12 | =cut | ||
| 13 | |||
| 14 | =head3 DESCRIPTION | ||
| 15 | |||
| 16 | This class extends Articulate::Error and merely sets two default values: | ||
| 17 | |||
| 18 | =head3 simple_message | ||
| 19 | |||
| 20 | This defaults to C<'Internal Server Error'>. | ||
| 21 | |||
| 22 | =head3 http_code | ||
| 23 | |||
| 24 | This defaults to C<500>. | ||
| 25 | |||
| 26 | =cut | ||
| 27 | |||
| 28 | 9 | has '+simple_message' => | |
| 29 | default => 'Internal Server Error'; | ||
| 30 | |||
| 31 | 9 | has '+http_code' => | |
| 32 | default => 500; | ||
| 33 | |||
| 34 | 9 | 1; | |