line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package HTTP::Throwable::Role::Status::InternalServerError 0.028; |
2
|
|
|
|
|
|
|
our $AUTHORITY = 'cpan:STEVAN'; |
3
|
|
|
|
|
|
|
|
4
|
1
|
|
|
1
|
|
1313
|
use Types::Standard qw(Bool); |
|
1
|
|
|
|
|
76136
|
|
|
1
|
|
|
|
|
9
|
|
5
|
|
|
|
|
|
|
|
6
|
1
|
|
|
1
|
|
1319
|
use Moo::Role; |
|
1
|
|
|
|
|
14958
|
|
|
1
|
|
|
|
|
5
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
with( |
9
|
|
|
|
|
|
|
'HTTP::Throwable', |
10
|
|
|
|
|
|
|
'StackTrace::Auto', |
11
|
|
|
|
|
|
|
); |
12
|
|
|
|
|
|
|
|
13
|
2
|
|
|
2
|
0
|
124
|
sub default_status_code { 500 } |
14
|
2
|
|
|
2
|
0
|
14005
|
sub default_reason { 'Internal Server Error' } |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
has 'show_stack_trace' => ( is => 'ro', isa => Bool, default => 1 ); |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
sub text_body { |
19
|
3
|
|
|
3
|
0
|
8
|
my ($self) = @_; |
20
|
|
|
|
|
|
|
|
21
|
3
|
|
|
|
|
13
|
my $out = $self->status_line; |
22
|
3
|
50
|
|
|
|
74
|
$out .= "\n\n" . $self->stack_trace->as_string |
23
|
|
|
|
|
|
|
if $self->show_stack_trace; |
24
|
|
|
|
|
|
|
|
25
|
3
|
|
|
|
|
3345
|
return $out; |
26
|
|
|
|
|
|
|
} |
27
|
|
|
|
|
|
|
|
28
|
1
|
|
|
1
|
|
472
|
no Moo::Role; 1; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
6
|
|
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
=pod |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
=encoding UTF-8 |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
=head1 NAME |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
HTTP::Throwable::Role::Status::InternalServerError - 500 Internal Server Error |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
=head1 VERSION |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
version 0.028 |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
=head1 DESCRIPTION |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
The server encountered an unexpected condition which prevented it |
45
|
|
|
|
|
|
|
from fulfilling the request. |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
=head1 PERL VERSION |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
This library should run on perls released even a long time ago. It should work |
50
|
|
|
|
|
|
|
on any version of perl released in the last five years. |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
Although it may work on older versions of perl, no guarantee is made that the |
53
|
|
|
|
|
|
|
minimum required version will not be increased. The version may be increased |
54
|
|
|
|
|
|
|
for any reason, and there is no promise that patches will be accepted to lower |
55
|
|
|
|
|
|
|
the minimum required perl. |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
=head1 ATTRIBUTES |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
=head2 show_stack_trace |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
This is a boolean attribute which by default is true and indicates |
62
|
|
|
|
|
|
|
to the C method whether or not to show the stack trace |
63
|
|
|
|
|
|
|
in the output. |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
=head1 AUTHORS |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
=over 4 |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
=item * |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
Stevan Little |
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
=item * |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
Ricardo Signes |
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
=back |
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
80
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
This software is copyright (c) 2011 by Infinity Interactive, Inc. |
82
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
84
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
85
|
|
|
|
|
|
|
|
86
|
|
|
|
|
|
|
=cut |
87
|
|
|
|
|
|
|
|
88
|
|
|
|
|
|
|
__END__ |