| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package RedisDB::Error; |
|
2
|
|
|
|
|
|
|
|
|
3
|
17
|
|
|
17
|
|
93
|
use strict; |
|
|
17
|
|
|
|
|
25
|
|
|
|
17
|
|
|
|
|
429
|
|
|
4
|
17
|
|
|
17
|
|
69
|
use base 'RedisDB::Parser::Error'; |
|
|
17
|
|
|
|
|
23
|
|
|
|
17
|
|
|
|
|
6896
|
|
|
5
|
|
|
|
|
|
|
our $VERSION = "2.55"; |
|
6
|
|
|
|
|
|
|
$VERSION = eval $VERSION; |
|
7
|
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
=head1 NAME |
|
9
|
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
RedisDB::Error - Error class for RedisDB |
|
11
|
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
=head1 SYNOPSIS |
|
13
|
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
sub callback { |
|
15
|
|
|
|
|
|
|
my ($redis, $reply) = @_; |
|
16
|
|
|
|
|
|
|
die "$reply" if ref $reply eq 'RedisDB::Error'; |
|
17
|
|
|
|
|
|
|
# do something with reply |
|
18
|
|
|
|
|
|
|
} |
|
19
|
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
=head1 DESCRIPTION |
|
21
|
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
Object of this class maybe passed as argument to callback specified in |
|
23
|
|
|
|
|
|
|
I if redis server return error. In string context object |
|
24
|
|
|
|
|
|
|
returns description of the error. This class inherits from |
|
25
|
|
|
|
|
|
|
L. |
|
26
|
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
=cut |
|
28
|
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
*new = \&RedisDB::Parser::Error::new; |
|
30
|
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
package RedisDB::Error::EAGAIN; |
|
32
|
|
|
|
|
|
|
our @ISA = qw(RedisDB::Error); |
|
33
|
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
package RedisDB::Error::DISCONNECTED; |
|
35
|
|
|
|
|
|
|
our @ISA = qw(RedisDB::Error); |
|
36
|
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
package RedisDB::Error::MOVED; |
|
38
|
|
|
|
|
|
|
our @ISA = qw(RedisDB::Parser::Error::MOVED RedisDB::Error); |
|
39
|
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
package RedisDB::Error::ASK; |
|
41
|
|
|
|
|
|
|
our @ISA = qw(RedisDB::Parser::Error::ASK RedisDB::Error); |
|
42
|
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
1; |
|
44
|
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
__END__ |