From adebf8c93090fb07c94f1a71af619d5c35a75056 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=95=D0=B3=D0=BE=D1=80=20=D0=93=D0=B0=D0=BB=D0=BA=D0=B8?= =?UTF-8?q?=D0=BD?= Date: Sat, 9 Jan 2021 14:07:20 +0000 Subject: [PATCH] Add new file --- Part 2/FileException.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Part 2/FileException.h diff --git a/Part 2/FileException.h b/Part 2/FileException.h new file mode 100644 index 0000000..1a70e7a --- /dev/null +++ b/Part 2/FileException.h @@ -0,0 +1,17 @@ +#pragma once +#include +#include +using namespace std; +class FileException : public exception +{ + string n_error; +public: + FileException(string &error) + { + n_error = error; + } + const char* what() const noexcept + { + return n_error.c_str(); + } +}; \ No newline at end of file -- GitLab