瀏覽代碼

Added FileOperationException class

- added FileOperationException class to throw
exceptions related to file operations
Patrick 4 年之前
父節點
當前提交
64ef7218f1
共有 1 個文件被更改,包括 25 次插入0 次删除
  1. 25 0
      source/exception/FileOperationException.hpp

+ 25 - 0
source/exception/FileOperationException.hpp

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