aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/poco/Redis/src/RedisEventArgs.cpp
blob: 014da2bb835297e2ce2e33d01261e2e8a64006bd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
//
// RedisEventArgs.cpp
//
// 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