Skip to content

Commit 525a055

Browse files
committed
%ERROR_CODES moved to AnyEvent::RipeRedis::Error
1 parent 605ed39 commit 525a055

File tree

3 files changed

+32
-33
lines changed

3 files changed

+32
-33
lines changed

README

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
AnyEvent-RipeRedis version 0.14
1+
AnyEvent-RipeRedis version 0.15_01
22
======================
33

44
INSTALLATION

lib/AnyEvent/RipeRedis.pm

Lines changed: 2 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use strict;
55
use warnings;
66
use base qw( Exporter );
77

8-
our $VERSION = '0.14';
8+
our $VERSION = '0.15_01';
99

1010
use AnyEvent::RipeRedis::Error;
1111

@@ -18,36 +18,7 @@ use Carp qw( croak );
1818
our %ERROR_CODES;
1919

2020
BEGIN {
21-
%ERROR_CODES = (
22-
E_CANT_CONN => 1,
23-
E_LOADING_DATASET => 2,
24-
E_IO => 3,
25-
E_CONN_CLOSED_BY_REMOTE_HOST => 4,
26-
E_CONN_CLOSED_BY_CLIENT => 5,
27-
E_NO_CONN => 6,
28-
E_OPRN_ERROR => 9,
29-
E_UNEXPECTED_DATA => 10,
30-
E_NO_SCRIPT => 11,
31-
E_READ_TIMEDOUT => 12,
32-
E_BUSY => 13,
33-
E_MASTER_DOWN => 14,
34-
E_MISCONF => 15,
35-
E_READONLY => 16,
36-
E_OOM => 17,
37-
E_EXEC_ABORT => 18,
38-
E_NO_AUTH => 19,
39-
E_WRONG_TYPE => 20,
40-
E_NO_REPLICAS => 21,
41-
E_BUSY_KEY => 22,
42-
E_CROSS_SLOT => 23,
43-
E_TRY_AGAIN => 24,
44-
E_ASK => 25,
45-
E_MOVED => 26,
46-
E_CLUSTER_DOWN => 27,
47-
);
48-
}
49-
50-
BEGIN {
21+
%ERROR_CODES = %AnyEvent::RipeRedis::Error::ERROR_CODES;
5122
our @EXPORT_OK = keys %ERROR_CODES;
5223
our %EXPORT_TAGS = ( err_codes => \@EXPORT_OK, );
5324
}

lib/AnyEvent/RipeRedis/Error.pm

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,35 @@ use 5.008000;
44
use strict;
55
use warnings;
66

7-
our $VERSION = '0.14';
7+
our $VERSION = '0.15_01';
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+
);
836

937

1038
sub new {

0 commit comments

Comments
 (0)