From 6a83147ac010e2b4af0add52638452c1b0b39bf1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20L=C3=BChne?= Date: Fri, 10 Jun 2016 17:21:56 +0200 Subject: [PATCH] Moved TranslatorException class to utils directory. --- include/plasp/{sas => utils}/TranslatorException.h | 8 ++++---- src/plasp/sas/TranslatorASP.cpp | 2 -- 2 files changed, 4 insertions(+), 6 deletions(-) rename include/plasp/{sas => utils}/TranslatorException.h (83%) diff --git a/include/plasp/sas/TranslatorException.h b/include/plasp/utils/TranslatorException.h similarity index 83% rename from include/plasp/sas/TranslatorException.h rename to include/plasp/utils/TranslatorException.h index cd54fec..73e3239 100644 --- a/include/plasp/sas/TranslatorException.h +++ b/include/plasp/utils/TranslatorException.h @@ -1,12 +1,12 @@ -#ifndef __PLASP__SAS__TRANSLATOR_EXCEPTION_H -#define __PLASP__SAS__TRANSLATOR_EXCEPTION_H +#ifndef __PLASP__UTILS__TRANSLATOR_EXCEPTION_H +#define __PLASP__UTILS__TRANSLATOR_EXCEPTION_H #include #include namespace plasp { -namespace sas +namespace utils { //////////////////////////////////////////////////////////////////////////////////////////////////// @@ -39,7 +39,7 @@ class TranslatorException: public std::exception const char *what() const throw() { if (m_message.empty()) - return "Unspecified error while translating SAS description"; + return "Unspecified error while translating description"; return m_message.c_str(); } diff --git a/src/plasp/sas/TranslatorASP.cpp b/src/plasp/sas/TranslatorASP.cpp index 8300829..b09c5fc 100644 --- a/src/plasp/sas/TranslatorASP.cpp +++ b/src/plasp/sas/TranslatorASP.cpp @@ -1,7 +1,5 @@ #include -#include - namespace plasp { namespace sas