1
0
mirror of https://github.com/pocoproject/poco.git synced 2025-03-25 08:06:03 +01:00
poco/Redis/src/RedisEventArgs.cpp
2016-09-04 14:30:26 +02:00

49 lines
710 B
C++

//
// RedisEventArgs.cpp
//
// $Id$
//
// Library: Redis
// Package: Redis
// Module: RedisEventArgs
//
// Implementation of the RedisEventArgs class.
//
// Copyright (c) 2015, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#include "Poco/Redis/RedisEventArgs.h"
namespace Poco {
namespace Redis {
RedisEventArgs::RedisEventArgs(RedisType::Ptr pMessage):
_message(pMessage),
_exception(0),
_stop(false)
{
}
RedisEventArgs::RedisEventArgs(Exception* pException):
_message(),
_exception(pException ? pException->clone() : 0),
_stop(false)
{
}
RedisEventArgs::~RedisEventArgs()
{
delete _exception;
}
} } // namespace Poco::Redis