add: config validity check

This commit is contained in:
Talyx
2022-02-16 00:18:25 +03:00
parent 5a03f111ec
commit e97df9c137
5 changed files with 134 additions and 24 deletions

View File

View File

@@ -0,0 +1,17 @@
#ifndef CONFIGEXCEPTION_HPP
#define CONFIGEXCEPTION_HPP
#include "webserv.hpp"
class ConfigException
{
private:
std::string _msg;
public:
ConfigException(std::string const &str) : _msg(str){}
~ConfigException(){}
std::string getMessage() const {return (_msg);}
};
#endif