NAME
RedisDB::Error - Error class for RedisDB
SYNOPSIS
sub callback {
my ($redis, $reply) = @_;
die "$reply" if ref $reply eq 'RedisDB::Error';
# do something with reply
}
DESCRIPTION
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.
METHODS
$class->new($message)
Create new error object with specified error message.
$self->as_string
Return error message. Also you can just use object in string context.
SEE ALSO
AUTHOR
Pavel Shaydo, <zwon at cpan.org>
LICENSE AND COPYRIGHT
Copyright 2011-2014 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.