Many additions and changes.
This commit is contained in:
1 parent
50f6e972de
commit
08169b1c3d
30 files changed
+451
-63
No files matched your search
@@ -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() {}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user