line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
######################################################################### |
2
|
|
|
|
|
|
|
# ex: set ts=8 sw=4 et |
3
|
|
|
|
|
|
|
######################################################################### |
4
|
|
|
|
|
|
|
package WWW::Facebook::API::Exception; |
5
|
|
|
|
|
|
|
|
6
|
34
|
|
|
34
|
|
203
|
use warnings; |
|
34
|
|
|
|
|
57
|
|
|
34
|
|
|
|
|
1356
|
|
7
|
34
|
|
|
34
|
|
190
|
use strict; |
|
34
|
|
|
|
|
66
|
|
|
34
|
|
|
|
|
1158
|
|
8
|
34
|
|
|
34
|
|
183
|
use Carp; |
|
34
|
|
|
|
|
54
|
|
|
34
|
|
|
|
|
2650
|
|
9
|
|
|
|
|
|
|
|
10
|
34
|
|
|
34
|
|
185
|
use overload ('""' => 'stringify'); |
|
34
|
|
|
|
|
58
|
|
|
34
|
|
|
|
|
301
|
|
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
sub new { |
13
|
0
|
|
|
0
|
1
|
|
my ($class, $method, $params, $response) = @_; |
14
|
|
|
|
|
|
|
|
15
|
0
|
|
|
|
|
|
my $self = { |
16
|
|
|
|
|
|
|
_method => $method, |
17
|
|
|
|
|
|
|
_params => $params, |
18
|
|
|
|
|
|
|
_response => $response |
19
|
|
|
|
|
|
|
}; |
20
|
0
|
|
|
|
|
|
$self = bless $self, $class; |
21
|
|
|
|
|
|
|
} |
22
|
|
|
|
|
|
|
|
23
|
0
|
|
|
0
|
1
|
|
sub method { my $self = shift; return $self->{_method} } |
|
0
|
|
|
|
|
|
|
24
|
0
|
|
|
0
|
1
|
|
sub params { my $self = shift; return $self->{_params} } |
|
0
|
|
|
|
|
|
|
25
|
0
|
|
|
0
|
1
|
|
sub response { my $self = shift; return $self->{_response} } |
|
0
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
sub stringify { |
28
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
29
|
|
|
|
|
|
|
|
30
|
0
|
|
|
|
|
|
my $method = $self->method; |
31
|
0
|
|
|
|
|
|
my $params = $self->params; |
32
|
0
|
|
|
|
|
|
my $response = $self->response; |
33
|
|
|
|
|
|
|
|
34
|
0
|
|
|
|
|
|
return "Error during REST $method call:" |
35
|
|
|
|
|
|
|
. WWW::Facebook::API->log_string( $params, $response ); |
36
|
|
|
|
|
|
|
} |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
1; # Magic true value required at end of module |
40
|
|
|
|
|
|
|
__END__ |