1 | // |
---|---|
2 | // RedisEventArgs.cpp |
3 | // |
4 | // Library: Redis |
5 | // Package: Redis |
6 | // Module: RedisEventArgs |
7 | // |
8 | // Implementation of the RedisEventArgs class. |
9 | // |
10 | // Copyright (c) 2015, Applied Informatics Software Engineering GmbH. |
11 | // and Contributors. |
12 | // |
13 | // SPDX-License-Identifier: BSL-1.0 |
14 | // |
15 | |
16 | |
17 | #include "Poco/Redis/RedisEventArgs.h" |
18 | |
19 | |
20 | namespace Poco { |
21 | namespace Redis { |
22 | |
23 | |
24 | RedisEventArgs::RedisEventArgs(RedisType::Ptr pMessage): |
25 | _message(pMessage), |
26 | _exception(0), |
27 | _stop(false) |
28 | { |
29 | } |
30 | |
31 | |
32 | RedisEventArgs::RedisEventArgs(Exception* pException): |
33 | _message(), |
34 | _exception(pException ? pException->clone() : 0), |
35 | _stop(false) |
36 | { |
37 | } |
38 | |
39 | |
40 | RedisEventArgs::~RedisEventArgs() |
41 | { |
42 | delete _exception; |
43 | } |
44 | |
45 | |
46 | } } // namespace Poco::Redis |
47 |