Browse Source

Fix exceptions

- add exception class name in front of message
Patrick 3 years ago
parent
commit
fafbc2b233

+ 2 - 2
source/ls_std/exception/FileNotFoundException.hpp

@@ -3,7 +3,7 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2020-08-17
- * Changed:         2020-10-29
+ * Changed:         2020-11-06
  *
  * */
 
@@ -22,7 +22,7 @@ namespace ls_std {
       FileNotFoundException() = default;
 
       const char *what() const noexcept override {
-        return "file not found!";
+        return "FileNotFoundException thrown - file not found!";
       };
   };
 }

+ 2 - 2
source/ls_std/exception/FileOperationException.hpp

@@ -3,7 +3,7 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2020-08-15
- * Changed:         2020-10-29
+ * Changed:         2020-11-06
  *
  * */
 
@@ -20,7 +20,7 @@ namespace ls_std {
       explicit FileOperationException() = default;
 
       const char *what() const noexcept override {
-        return "file operation failed!";
+        return "FileOperationException thrown - file operation failed!";
       }
   };
 }

+ 2 - 2
source/ls_std/exception/IllegalArgumentException.hpp

@@ -3,7 +3,7 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2020-08-09
- * Changed:         2020-10-29
+ * Changed:         2020-11-06
  *
  * */
 
@@ -19,7 +19,7 @@ namespace ls_std {
       IllegalArgumentException() = default;
 
       const char *what() const noexcept override {
-        return "passed argument is not valid!";
+        return "IllegalArgumentException thrown - passed argument is not valid!";
       }
   };
 }

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

@@ -19,7 +19,7 @@ namespace ls_std {
       IllegalArithmeticOperationException() = default;
 
       const char *what() const noexcept override {
-        return "arithmetic operation is not valid!";
+        return "IllegalArithmeticOperationException thrown - arithmetic operation is not valid!";
       }
   };
 }