epr24pr5-ojanssen2/FileError.h

21 lines
381 B
C
Raw Normal View History

#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