line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package AnyEvent::RipeRedis::Error; |
2
|
|
|
|
|
|
|
|
3
|
21
|
|
|
21
|
|
263
|
use 5.008000; |
|
21
|
|
|
|
|
53
|
|
4
|
21
|
|
|
21
|
|
82
|
use strict; |
|
21
|
|
|
|
|
37
|
|
|
21
|
|
|
|
|
374
|
|
5
|
21
|
|
|
21
|
|
117
|
use warnings; |
|
21
|
|
|
|
|
29
|
|
|
21
|
|
|
|
|
3600
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
our $VERSION = '0.46'; |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
our %ERROR_CODES = ( |
10
|
|
|
|
|
|
|
E_CANT_CONN => 1, |
11
|
|
|
|
|
|
|
E_LOADING_DATASET => 2, |
12
|
|
|
|
|
|
|
E_IO => 3, |
13
|
|
|
|
|
|
|
E_CONN_CLOSED_BY_REMOTE_HOST => 4, |
14
|
|
|
|
|
|
|
E_CONN_CLOSED_BY_CLIENT => 5, |
15
|
|
|
|
|
|
|
E_NO_CONN => 6, |
16
|
|
|
|
|
|
|
E_OPRN_ERROR => 9, |
17
|
|
|
|
|
|
|
E_UNEXPECTED_DATA => 10, |
18
|
|
|
|
|
|
|
E_NO_SCRIPT => 11, |
19
|
|
|
|
|
|
|
E_READ_TIMEDOUT => 12, |
20
|
|
|
|
|
|
|
E_BUSY => 13, |
21
|
|
|
|
|
|
|
E_MASTER_DOWN => 14, |
22
|
|
|
|
|
|
|
E_MISCONF => 15, |
23
|
|
|
|
|
|
|
E_READONLY => 16, |
24
|
|
|
|
|
|
|
E_OOM => 17, |
25
|
|
|
|
|
|
|
E_EXEC_ABORT => 18, |
26
|
|
|
|
|
|
|
E_NO_AUTH => 19, |
27
|
|
|
|
|
|
|
E_WRONG_TYPE => 20, |
28
|
|
|
|
|
|
|
E_NO_REPLICAS => 21, |
29
|
|
|
|
|
|
|
E_BUSY_KEY => 22, |
30
|
|
|
|
|
|
|
E_CROSS_SLOT => 23, |
31
|
|
|
|
|
|
|
E_TRY_AGAIN => 24, |
32
|
|
|
|
|
|
|
E_ASK => 25, |
33
|
|
|
|
|
|
|
E_MOVED => 26, |
34
|
|
|
|
|
|
|
E_CLUSTER_DOWN => 27, |
35
|
|
|
|
|
|
|
E_NOT_BUSY => 28, |
36
|
|
|
|
|
|
|
); |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
sub new { |
40
|
28
|
|
|
28
|
1
|
767
|
my $class = shift; |
41
|
28
|
|
|
|
|
44
|
my $err_msg = shift; |
42
|
28
|
|
|
|
|
43
|
my $err_code = shift; |
43
|
|
|
|
|
|
|
|
44
|
28
|
|
|
|
|
95
|
my $self = bless {}, $class; |
45
|
|
|
|
|
|
|
|
46
|
28
|
|
|
|
|
92
|
$self->{message} = $err_msg; |
47
|
28
|
|
|
|
|
60
|
$self->{code} = $err_code; |
48
|
|
|
|
|
|
|
|
49
|
28
|
|
|
|
|
57
|
return $self; |
50
|
|
|
|
|
|
|
} |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
sub message { |
53
|
36
|
|
|
36
|
1
|
4296
|
my $self = shift; |
54
|
36
|
|
|
|
|
437
|
return $self->{message}; |
55
|
|
|
|
|
|
|
} |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
sub code { |
58
|
31
|
|
|
31
|
1
|
52
|
my $self = shift; |
59
|
31
|
|
|
|
|
109
|
return $self->{code}; |
60
|
|
|
|
|
|
|
} |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
1; |
63
|
|
|
|
|
|
|
__END__ |