ServerCore/Exception.cpp
2019-02-07 13:28:21 -08:00

21 lines
407 B
C++

#include "Exception.h"
#include "Log.h"
namespace core {
Exception::Exception(std::string text, std::string file, int line, int errorNumber) {
this->text = text;
this->file = file;
this->line = line;
if(errorNumber == -1)
this->errorNumber = errno;
else
this->errorNumber = errorNumber;
Log(LOG_EXCEPT) << text;
}
Exception::~Exception() {}
}