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