From 29ce88febb3c2928836b59cfd966bc4dbdf77770 Mon Sep 17 00:00:00 2001 From: Jan Olszak Date: Fri, 14 Feb 2014 14:51:22 +0100 Subject: [PATCH] Base classes for exceptions. [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 | 18 ++++++++++++++++++ src/server/include/scs-exception.hpp | 18 ++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 src/client/include/scc-exception.hpp create mode 100644 src/server/include/scs-exception.hpp diff --git a/src/client/include/scc-exception.hpp b/src/client/include/scc-exception.hpp new file mode 100644 index 0000000..c805cdc --- /dev/null +++ b/src/client/include/scc-exception.hpp @@ -0,0 +1,18 @@ +#ifndef SECURITY_CONTAINERS_CLIENT_EXCEPTION_HPP +#define SECURITY_CONTAINERS_CLIENT_EXCEPTION_HPP + +#include + +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 index 0000000..169c918 --- /dev/null +++ b/src/server/include/scs-exception.hpp @@ -0,0 +1,18 @@ +#ifndef SECURITY_CONTAINERS_SERVER_EXCEPTION_HPP +#define SECURITY_CONTAINERS_SERVER_EXCEPTION_HPP + +#include + +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 -- 2.7.4