line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Articulate::Error::BadRequest; |
2
|
9
|
|
|
9
|
|
4887
|
use strict; |
|
9
|
|
|
|
|
18
|
|
|
9
|
|
|
|
|
305
|
|
3
|
9
|
|
|
9
|
|
42
|
use warnings; |
|
9
|
|
|
|
|
20
|
|
|
9
|
|
|
|
|
215
|
|
4
|
|
|
|
|
|
|
|
5
|
9
|
|
|
9
|
|
36
|
use Moo; |
|
9
|
|
|
|
|
10
|
|
|
9
|
|
|
|
|
48
|
|
6
|
|
|
|
|
|
|
extends 'Articulate::Error'; |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
=head1 NAME |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
Articulate::Error::BadRequest - represent an error arising from unacceptable input |
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<'Bad Request'>. |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
=head3 http_code |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
This defaults to C<400>. |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
=cut |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
has '+simple_message' => |
29
|
|
|
|
|
|
|
default => 'Bad Request'; |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
has '+http_code' => |
32
|
|
|
|
|
|
|
default => 400; |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
1; |