19 lines
379 B
C++
19 lines
379 B
C++
#include "Exception.h"
|
|
#include "Log.h"
|
|
|
|
namespace coreutils {
|
|
|
|
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;
|
|
}
|
|
|
|
}
|