Updated exception
This commit is contained in:
parent
2a8cfcee2a
commit
b873bbf164
@ -12,7 +12,7 @@ namespace coreutils {
|
||||
else
|
||||
this->errorNumber = errorNumber;
|
||||
|
||||
Log(LOG_EXCEPT) << text;
|
||||
Log(LOG_EXCEPT) << text << "(" << file << ":" << line << ")";
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -3,13 +3,14 @@
|
||||
|
||||
#include <string.h>
|
||||
#include <string>
|
||||
#include <errno.h>
|
||||
|
||||
namespace coreutils {
|
||||
|
||||
class Exception {
|
||||
|
||||
public:
|
||||
Exception(std::string text, std::string file = __FILE__, int line = __LINE__, int errorNumber = -1);
|
||||
Exception(std::string text, std::string file = __FILE__, int line = __LINE__, int errorNumber = errno);
|
||||
|
||||
std::string className;
|
||||
std::string file;
|
||||
|
Loading…
x
Reference in New Issue
Block a user