line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Articulate::Error::Forbidden; |
2
|
11
|
|
|
11
|
|
4796
|
use strict; |
|
11
|
|
|
|
|
17
|
|
|
11
|
|
|
|
|
351
|
|
3
|
11
|
|
|
11
|
|
48
|
use warnings; |
|
11
|
|
|
|
|
12
|
|
|
11
|
|
|
|
|
305
|
|
4
|
|
|
|
|
|
|
|
5
|
11
|
|
|
11
|
|
39
|
use Moo; |
|
11
|
|
|
|
|
14
|
|
|
11
|
|
|
|
|
48
|
|
6
|
|
|
|
|
|
|
extends 'Articulate::Error'; |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
=head1 NAME |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
Articulate::Error::Unauthorised - represent an error arising from a forbidden action |
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<'Forbidden'>. |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
=head3 http_code |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
This defaults to C<403>. |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
=cut |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
has '+simple_message' => ( default => 'Forbidden', ); |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
has '+http_code' => ( default => 403, ); |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
1; |