RedisDB::Error - Error class for RedisDB
sub callback {
my ($redis, $reply) = @_;
die "$reply" if ref $reply eq 'RedisDB::Error';
# do something with reply
}
Object of this class maybe passed as argument to callback specified in
send_command_cb if redis server return error. In string context object
returns description of the error. This class inherits from
RedisDB::Parser::Error.
Pavel Shaydo, "<zwon at cpan.org>"
Copyright 2011-2016 Pavel Shaydo.
This program is free software; you can redistribute it and/or
modify it under the terms of either: the GNU General Public License as
published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.