Selaa lähdekoodia

Improved IllegalArithmeticOperationException class

- improved error message
- added default constructor
Patrick 4 vuotta sitten
vanhempi
commit
7cca790b48
1 muutettua tiedostoa jossa 4 lisäystä ja 2 poistoa
  1. 4 2
      source/exception/IllegalArithmeticOperationException.hpp

+ 4 - 2
source/exception/IllegalArithmeticOperationException.hpp

@@ -3,7 +3,7 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2020-08-07
- * Changed:         2020-08-15
+ * Changed:         2020-08-17
  *
  * */
 
@@ -16,8 +16,10 @@ namespace ls_std {
   class IllegalArithmeticOperationException : public std::exception {
     public:
 
+      IllegalArithmeticOperationException() = default;
+
       const char *what() const noexcept override {
-        return "operation is not valid...";
+        return "arithmetic operation is not valid!";
       }
   };
 }