DSProperty: move DSPropertyExceptopn from private class to public class 50/243450/1
authorJunseok, Kim <juns.kim@samsung.com>
Wed, 2 Sep 2020 05:38:27 +0000 (14:38 +0900)
committerSung-Jin Park <sj76.park@samsung.com>
Mon, 7 Sep 2020 10:35:40 +0000 (19:35 +0900)
Change-Id: Id68c0a4ebc1ed5c44b9cba8953fbd28c6e4b9ef5

src/DSProperty/DSProperty.h
src/DSProperty/DSPropertyPrivate.h

index 3039fba..d3abdd0 100644 (file)
@@ -32,6 +32,22 @@ namespace display_server
 
 class DSPropertyPrivate;
 
+struct DSPropertyException : public std::exception
+{
+public:
+       DSPropertyException(std::string str)
+               : __msg(str)
+       {}
+
+       virtual const char *what() const noexcept override
+       {
+               return __msg.c_str();
+       }
+
+private:
+       std::string __msg;
+};
+
 class DSProperty
 {
 public:
index d851a29..59c6002 100644 (file)
@@ -43,22 +43,6 @@ using DSPropertyType = enum type {
 
 using DSPropertyVariant = std::variant<int, float, double, std::string, void *>;
 
-struct DSPropertyException : public std::exception
-{
-public:
-       DSPropertyException(std::string str)
-               : __msg(str)
-       {}
-
-       virtual const char *what() const noexcept override
-       {
-               return __msg.c_str();
-       }
-
-private:
-       std::string __msg;
-};
-
 class DSPropertyPrivate
 {
 public: