Many additions and changes.

This commit is contained in:
barant committed 2019-09-13 10:29:36 -07:00
1 parent 50f6e972de
commit 08169b1c3d
30 files changed
+451 -63

No files matched your search

+20
View File
@@ -0,0 +1,20 @@
#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;
}
Exception::~Exception() {}
}