forked from University/epr24pr5-ojanssen2
20 lines
381 B
C++
20 lines
381 B
C++
#include "std_lib_inc.h"
|
|
#include <exception>
|
|
#ifndef FILEERROR_H
|
|
#define FILEERROR_H
|
|
|
|
namespace err {
|
|
class FileError : public exception {
|
|
private:
|
|
string what;
|
|
|
|
public:
|
|
FileError(const string& msg) : exception(), what(msg) {}
|
|
string why() {
|
|
return this->what;
|
|
}
|
|
};
|
|
}
|
|
|
|
#endif // FILEERROR_H
|
|
|