Browse Source

Move exception header files

Patrick 4 years ago
parent
commit
c0230c25cf

+ 5 - 5
CMakeLists.txt

@@ -43,11 +43,11 @@ set(SOURCE_FILES
         ${CMAKE_CURRENT_SOURCE_DIR}/source/ls_std/base/Class.cpp
         ${CMAKE_CURRENT_SOURCE_DIR}/source/ls_std/boxing/Integer.cpp
         ${CMAKE_CURRENT_SOURCE_DIR}/include/ls_std/boxing/IBoxing.hpp
-        ${CMAKE_CURRENT_SOURCE_DIR}/source/ls_std/exception/IllegalArithmeticOperationException.hpp
+        ${CMAKE_CURRENT_SOURCE_DIR}/include/ls_std/exception/IllegalArithmeticOperationException.hpp
         ${CMAKE_CURRENT_SOURCE_DIR}/include/ls_std/base/Types.hpp
         ${CMAKE_CURRENT_SOURCE_DIR}/include/ls_std/boxing/Boolean.hpp
         ${CMAKE_CURRENT_SOURCE_DIR}/source/ls_std/boxing/Boolean.cpp
-        ${CMAKE_CURRENT_SOURCE_DIR}/source/ls_std/exception/IllegalArgumentException.hpp
+        ${CMAKE_CURRENT_SOURCE_DIR}/include/ls_std/exception/IllegalArgumentException.hpp
         ${CMAKE_CURRENT_SOURCE_DIR}/include/ls_std/boxing/Float.hpp
         ${CMAKE_CURRENT_SOURCE_DIR}/source/ls_std/boxing/Float.cpp
         ${CMAKE_CURRENT_SOURCE_DIR}/include/ls_std/boxing/Double.hpp
@@ -58,7 +58,7 @@ set(SOURCE_FILES
         ${CMAKE_CURRENT_SOURCE_DIR}/source/ls_std/time/Date.cpp
         ${CMAKE_CURRENT_SOURCE_DIR}/source/ls_std/io/File.hpp
         ${CMAKE_CURRENT_SOURCE_DIR}/source/ls_std/io/File.cpp
-        ${CMAKE_CURRENT_SOURCE_DIR}/source/ls_std/exception/FileOperationException.hpp
+        ${CMAKE_CURRENT_SOURCE_DIR}/include/ls_std/exception/FileOperationException.hpp
         ${CMAKE_CURRENT_SOURCE_DIR}/source/ls_std/io/FilePathSeparatorMatch.hpp
         ${CMAKE_CURRENT_SOURCE_DIR}/source/ls_std/io/FilePathSeparator.hpp
         ${CMAKE_CURRENT_SOURCE_DIR}/source/ls_std/utils/STLUtils.hpp
@@ -67,7 +67,7 @@ set(SOURCE_FILES
         ${CMAKE_CURRENT_SOURCE_DIR}/source/ls_std/io/IWriter.hpp
         ${CMAKE_CURRENT_SOURCE_DIR}/source/ls_std/io/FileWriter.hpp
         ${CMAKE_CURRENT_SOURCE_DIR}/source/ls_std/io/FileWriter.cpp
-        ${CMAKE_CURRENT_SOURCE_DIR}/source/ls_std/exception/FileNotFoundException.hpp
+        ${CMAKE_CURRENT_SOURCE_DIR}/include/ls_std/exception/FileNotFoundException.hpp
         ${CMAKE_CURRENT_SOURCE_DIR}/source/ls_std/io/IReader.hpp
         ${CMAKE_CURRENT_SOURCE_DIR}/source/ls_std/io/FileReader.hpp
         ${CMAKE_CURRENT_SOURCE_DIR}/source/ls_std/io/FileReader.cpp
@@ -125,7 +125,7 @@ set(SOURCE_FILES
         ${CMAKE_CURRENT_SOURCE_DIR}/source/ls_std/io/xml/XMLParseData.hpp
         ${CMAKE_CURRENT_SOURCE_DIR}/source/ls_std/io/xml/XMLReaderMock.hpp
         ${CMAKE_CURRENT_SOURCE_DIR}/source/ls_std/io/xml/XMLReaderMock.cpp
-        ${CMAKE_CURRENT_SOURCE_DIR}/source/ls_std/exception/NullPointerException.hpp
+        ${CMAKE_CURRENT_SOURCE_DIR}/include/ls_std/exception/NullPointerException.hpp
         ${CMAKE_CURRENT_SOURCE_DIR}/source/ls_std/io/StandardOutputWriter.hpp
         ${CMAKE_CURRENT_SOURCE_DIR}/source/ls_std/io/StandardOutputWriter.cpp)
 

+ 0 - 0
source/ls_std/exception/FileNotFoundException.hpp → include/ls_std/exception/FileNotFoundException.hpp


+ 0 - 0
source/ls_std/exception/FileOperationException.hpp → include/ls_std/exception/FileOperationException.hpp


+ 0 - 0
source/ls_std/exception/IllegalArgumentException.hpp → include/ls_std/exception/IllegalArgumentException.hpp


+ 1 - 1
source/ls_std/exception/IllegalArithmeticOperationException.hpp → include/ls_std/exception/IllegalArithmeticOperationException.hpp

@@ -3,7 +3,7 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2020-08-07
- * Changed:         2020-10-29
+ * Changed:         2020-11-06
  *
  * */
 

+ 0 - 0
source/ls_std/exception/NullPointerException.hpp → include/ls_std/exception/NullPointerException.hpp


+ 1 - 1
source/ls_std/boxing/Boolean.cpp

@@ -9,7 +9,7 @@
 
 #include <algorithm>
 #include "../../../include/ls_std/boxing/Boolean.hpp"
-#include "../exception/IllegalArgumentException.hpp"
+#include "../../../include/ls_std/exception/IllegalArgumentException.hpp"
 
 ls_std::Boolean::Boolean() : Class("Boolean")
 {}

+ 1 - 1
source/ls_std/boxing/Integer.cpp

@@ -8,7 +8,7 @@
  * */
 
 #include "../../../include/ls_std/boxing/Integer.hpp"
-#include "../exception/IllegalArithmeticOperationException.hpp"
+#include "../../../include/ls_std/exception/IllegalArithmeticOperationException.hpp"
 
 ls_std::Integer::Integer(int _value) : Class("Integer"),
 value(_value)

+ 1 - 3
source/ls_std/boxing/Long.cpp

@@ -8,9 +8,7 @@
  * */
 
 #include "../../../include/ls_std/boxing/Long.hpp"
-
-#include <utility>
-#include "../exception/IllegalArithmeticOperationException.hpp"
+#include "../../../include/ls_std/exception/IllegalArithmeticOperationException.hpp"
 
 ls_std::Long::Long(ls_std::long_type _value) : Class("Long"),
 value(_value)

+ 2 - 2
source/ls_std/io/File.cpp

@@ -3,12 +3,12 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2020-08-15
- * Changed:         2020-10-29
+ * Changed:         2020-11-06
  *
  * */
 
 #include "File.hpp"
-#include "../exception/FileOperationException.hpp"
+#include "../../../include/ls_std/exception/FileOperationException.hpp"
 #include "FilePathSeparatorMatch.hpp"
 #include <fstream>
 #include <algorithm>

+ 3 - 3
source/ls_std/io/FileOutputStream.cpp

@@ -3,13 +3,13 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2020-08-20
- * Changed:         2020-10-29
+ * Changed:         2020-11-06
  *
  * */
 
 #include "FileOutputStream.hpp"
-#include "../exception/FileNotFoundException.hpp"
-#include "../exception/FileOperationException.hpp"
+#include "../../../include/ls_std/exception/FileNotFoundException.hpp"
+#include "../../../include/ls_std/exception/FileOperationException.hpp"
 
 ls_std::FileOutputStream::FileOutputStream(File &_file) : Class("FileOutputStream"),
 file(_file)

+ 3 - 3
source/ls_std/io/FileReader.cpp

@@ -3,14 +3,14 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2020-08-17
- * Changed:         2020-10-29
+ * Changed:         2020-11-06
  *
  * */
 
 #include <fstream>
 #include "FileReader.hpp"
-#include "../exception/FileNotFoundException.hpp"
-#include "../exception/FileOperationException.hpp"
+#include "../../../include/ls_std/exception/FileNotFoundException.hpp"
+#include "../../../include/ls_std/exception/FileOperationException.hpp"
 
 ls_std::FileReader::FileReader(File &_file) : Class("FileReader"),
 file(_file)

+ 3 - 3
source/ls_std/io/FileWriter.cpp

@@ -3,14 +3,14 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2020-08-17
- * Changed:         2020-10-29
+ * Changed:         2020-11-06
  *
  * */
 
 #include <fstream>
 #include "FileWriter.hpp"
-#include "../exception/FileNotFoundException.hpp"
-#include "../exception/FileOperationException.hpp"
+#include "../../../include/ls_std/exception/FileNotFoundException.hpp"
+#include "../../../include/ls_std/exception/FileOperationException.hpp"
 
 ls_std::FileWriter::FileWriter(ls_std::File &_file) : Class("FileWriter"),
 file(_file)

+ 1 - 1
source/ls_std/io/xml/XMLReader.cpp

@@ -8,7 +8,7 @@
  * */
 
 #include "XMLReader.hpp"
-#include "../../exception/IllegalArgumentException.hpp"
+#include "../../../../include/ls_std/exception/IllegalArgumentException.hpp"
 #include "../FileReader.hpp"
 #include "../../../../include/ls_std/boxing/String.hpp"
 

+ 4 - 4
source/ls_std/ls_std.hpp

@@ -22,10 +22,10 @@
 #include "../../include/ls_std/boxing/Long.hpp"
 #include "../../include/ls_std/boxing/String.hpp"
 
-#include "exception/FileNotFoundException.hpp"
-#include "exception/FileOperationException.hpp"
-#include "exception/IllegalArgumentException.hpp"
-#include "exception/IllegalArithmeticOperationException.hpp"
+#include "../../include/ls_std/exception/FileNotFoundException.hpp"
+#include "../../include/ls_std/exception/FileOperationException.hpp"
+#include "../../include/ls_std/exception/IllegalArgumentException.hpp"
+#include "../../include/ls_std/exception/IllegalArithmeticOperationException.hpp"
 
 #include "io/logging/LogLevel.hpp"
 #include "io/logging/LogLevelValue.hpp"