Move TryCatch from client-common to common library 19/28719/4
authorLukasz Wojciechowski <l.wojciechow@partner.samsung.com>
Tue, 14 Oct 2014 12:45:27 +0000 (14:45 +0200)
committerLukasz Wojciechowski <l.wojciechow@partner.samsung.com>
Thu, 16 Oct 2014 11:24:37 +0000 (13:24 +0200)
TryCatch can be used also in admin libraries,
so it belongs to common library now.

Change-Id: Ibdd9c1576b9b34195555c2d9b43e72b57a83a201

src/common/exceptions/TryCatch.h [moved from src/client-common/exceptions/TryCatch.h with 88% similarity]

similarity index 88%
rename from src/client-common/exceptions/TryCatch.h
rename to src/common/exceptions/TryCatch.h
index 08b93d9..b1ef172 100644 (file)
  *  limitations under the License
  */
 /**
- * @file        src/client-common/exceptions/TryCatch.h
+ * @file        src/common/exceptions/TryCatch.h
  * @author      Marcin Niesluchowski <m.niesluchow@samsung.com>
  * @version     1.0
  * @brief       This file contains functions for catching exceptions
  */
 
-#ifndef SRC_CLIENT_COMMON_EXCEPTIONS_TRYCATCH_H_
-#define SRC_CLIENT_COMMON_EXCEPTIONS_TRYCATCH_H_
+#ifndef SRC_COMMON_EXCEPTIONS_TRYCATCH_H_
+#define SRC_COMMON_EXCEPTIONS_TRYCATCH_H_
 
 #include <exception>
 #include <functional>
@@ -54,5 +54,4 @@ int tryCatch(const std::function<int(void)> &func) {
 
 } // namespace Cynara
 
-#endif // SRC_CLIENT_COMMON_EXCEPTIONS_TRYCATCH_H_
-
+#endif // SRC_COMMON_EXCEPTIONS_TRYCATCH_H_