* Core: Create base exception classes
Created base exceptions classes.
This classes will be used by compiler components like
frontend, optimizers, backend to inform main compiler
part about some problems during compilation
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
* core: Create base exception classes
move libs/core/.../plugin to libs/foundation/.../plugin
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
* foundation: Create base exception classe
split class methods realisation
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
* foundation: Create base exception class
fix format coding style
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
* foundation: Create base exception class
this commit to fix PR
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
* foundation: Create config exception class
This class will be used to signalize about some configuration errors
like bad parametrs
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
* foundation: Create config exception class
Fix build for gcc compiler
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
* foundation: Create config exception class
move config exception to contrib
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
* foundation: Create config exception class
fix build. Add linking with nncc_foundation
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
* nnc: Create config exception class
change namespace to nncc::contrib::
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
* nnc: Create config exception class
This commit to fix coding style
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
* nnc: Create config exception class
This commit to fix coding style
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
add_executable(nnc ${CL_SRC})
target_link_libraries(nnc PRIVATE nncc_core)
+target_link_libraries(nnc PRIVATE nncc_foundation)
target_include_directories(nnc PUBLIC include)
add_subdirectory(libs)
--- /dev/null
+//
+// Created by snusmumric on 04.05.18.
+//
+#ifndef __CONFIGEXCEPTION_H__
+#define __CONFIGEXCEPTION_H__
+
+#include <string>
+
+#include "exception/BaseException.h"
+
+namespace nncc
+{
+namespace contrib
+{
+
+class ConfigException : public nncc::foundation::BaseException
+{
+public:
+ ConfigException() = default;
+ ~ConfigException() throw() override = default;
+
+ explicit ConfigException(const std::string &info);
+ explicit ConfigException(BaseException &e, const std::string &info);
+};
+
+} // namespace contrib
+} // namespace nncc
+
+#endif // __CONFIGEXCEPTION_H__
--- /dev/null
+//
+// Created by snusmumric on 04.05.18.
+//
+
+#include <string>
+
+#include "exception/ConfigException.h"
+
+namespace nncc
+{
+namespace contrib
+{
+
+ConfigException::ConfigException(const std::string &info) : BaseException(info) {}
+
+ConfigException::ConfigException(BaseException &e, const std::string &info) : BaseException(e, info)
+{
+}
+
+} // namespace contrib
+} // namespace nncc