mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-25 18:22:59 +02:00
43 lines
700 B
C++
43 lines
700 B
C++
//
|
|
// RedisEventArgs.cpp
|
|
//
|
|
// $Id$
|
|
//
|
|
// Library: Redis
|
|
// Package: Redis
|
|
// Module: RedisEventArgs
|
|
//
|
|
// Implementation of the RedisEventArgs class.
|
|
//
|
|
// Copyright (c) 2012, 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 message) :
|
|
_message(message),
|
|
_exception(0),
|
|
_stop(false)
|
|
{
|
|
}
|
|
|
|
RedisEventArgs::RedisEventArgs(Exception* exception) :
|
|
_message(),
|
|
_exception(exception ? exception->clone() : 0),
|
|
_stop(false)
|
|
{
|
|
}
|
|
|
|
RedisEventArgs::~RedisEventArgs()
|
|
{
|
|
delete _exception;
|
|
}
|
|
|
|
|
|
}} // namespace Poco::Redis
|