Base classes for exceptions.
authorJan Olszak <j.olszak@samsung.com>
Fri, 14 Feb 2014 13:51:22 +0000 (14:51 +0100)
committerJan Olszak <j.olszak@samsung.com>
Mon, 19 May 2014 11:47:14 +0000 (13:47 +0200)
        [Issue#]      PSDAC-64
        [Bug]         N/A
        [Cause]       N/A
        [Solution]    N/A
        [Verfication] Build and install all packages with rpm.

Change-Id: Ieab52a7fc102d191776a4087cb21aca02351871f

src/client/include/scc-exception.hpp [new file with mode: 0644]
src/server/include/scs-exception.hpp [new file with mode: 0644]

diff --git a/src/client/include/scc-exception.hpp b/src/client/include/scc-exception.hpp
new file mode 100644 (file)
index 0000000..c805cdc
--- /dev/null
@@ -0,0 +1,18 @@
+#ifndef SECURITY_CONTAINERS_CLIENT_EXCEPTION_HPP
+#define SECURITY_CONTAINERS_CLIENT_EXCEPTION_HPP
+
+#include <stdexcept>
+
+namespace security_containers {
+
+/**
+ * @brief Base class for exceptions in Security Containers Client
+ */
+struct ClientException: public std::runtime_error {
+    ServerException(const std::string& mess = "Security Containers Client Exception"):
+        std::runtime_error(mess) {};
+};
+
+}
+
+#endif // SECURITY_CONTAINERS_CLIENT_EXCEPTION_HPP
diff --git a/src/server/include/scs-exception.hpp b/src/server/include/scs-exception.hpp
new file mode 100644 (file)
index 0000000..169c918
--- /dev/null
@@ -0,0 +1,18 @@
+#ifndef SECURITY_CONTAINERS_SERVER_EXCEPTION_HPP
+#define SECURITY_CONTAINERS_SERVER_EXCEPTION_HPP
+
+#include <stdexcept>
+
+namespace security_containers {
+
+/**
+ * @brief Base class for exceptions in Security Containers Server
+ */
+struct ServerException: public std::runtime_error {
+    ServerException(const std::string& mess = "Security Containers Server Exception"):
+        std::runtime_error(mess) {};
+};
+
+}
+
+#endif // SECURITY_CONTAINERS_SERVER_EXCEPTION_HPP