Browse Source

Added IllegalArgumentException

Patrick 4 years ago
parent
commit
e039f48cc7
1 changed files with 25 additions and 0 deletions
  1. 25 0
      source/exception/IllegalArgumentException.hpp

+ 25 - 0
source/exception/IllegalArgumentException.hpp

@@ -0,0 +1,25 @@
+/*
+ * Author:          Patrick-Christopher Mattulat
+ * Company:         Lynar Studios
+ * E-Mail:          webmaster@lynarstudios.com
+ * Created:         2020-08-09
+ * Changed:         2020-08-09
+ *
+ * */
+
+#ifndef ILLEGAL_ARGUMENT_EXCEPTION_HPP
+#define ILLEGAL_ARGUMENT_EXCEPTION_HPP
+
+#include <exception>
+
+namespace ls_std {
+  class IllegalArgumentException : public std::exception {
+    public:
+
+      const char *what() const noexcept override {
+        return "argument is not valid...";
+      }
+  };
+}
+
+#endif