RedisDB::Parser::Error - default error class for RedisDB::Parser
use Scalar::Util qw(blessed); ...; sub callback { my ( $master, $reply ) = @_; die "$reply" if blessed $reply; # it's more like damned ...; # do something with reply }
Then RedisDB::Parser parses error response from server it creates an object of this class and passes it to callback. In string context object returns the error message from the server.
Create new error object with specified error message.
Return error message. Also you can just use object in string context.
RedisDB::Parser
Pavel Shaydo, <zwon at cpan.org>
<zwon at cpan.org>
Copyright 2011-2013 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.
To install RedisDB::Parser, copy and paste the appropriate command in to your terminal.
cpanm
cpanm RedisDB::Parser
CPAN shell
perl -MCPAN -e shell install RedisDB::Parser
For more information on module installation, please visit the detailed CPAN module installation guide.