Explorar o código

Improved IllegalArgumentException class

- improved text of IllegalArgumentException
- added default constructor
Patrick %!s(int64=4) %!d(string=hai) anos
pai
achega
b35c22f44d
Modificáronse 1 ficheiros con 4 adicións e 2 borrados
  1. 4 2
      source/exception/IllegalArgumentException.hpp

+ 4 - 2
source/exception/IllegalArgumentException.hpp

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