Throw RedisException when redis type can't be determined

This commit is contained in:
fbraem 2015-10-23 20:06:29 +02:00
parent 5c077ea4f9
commit 0f73e68b02

View File

@ -14,8 +14,9 @@
//
// SPDX-License-Identifier: BSL-1.0
//
#include "Poco/Redis/Client.h"
#include "Poco/Redis/Client.h"
#include "Poco/Redis/Exception.h"
namespace Poco {
namespace Redis {
@ -92,7 +93,7 @@ RedisType::Ptr Client::readReply()
RedisType::Ptr result = createRedisType( _socket.get());
if ( result.isNull() )
{
throw IOException("Invalid Redis type returned");
throw RedisException("Invalid Redis type returned");
}
result->read(_socket);