diff --git a/Part 2/FileException.h b/Part 2/FileException.h new file mode 100644 index 0000000000000000000000000000000000000000..1a70e7aaf993716fd3b314a441df07f0e33befa1 --- /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