2015-01-23 13:09:30 +00:00
|
|
|
/**
|
|
|
|
* This class stores the database errors.
|
2016-12-20 09:32:17 +00:00
|
|
|
*/
|
2016-09-26 09:28:47 +00:00
|
|
|
module.exports = new Class
|
2015-01-23 13:09:30 +00:00
|
|
|
({
|
2016-08-22 10:41:05 +00:00
|
|
|
exception: null
|
2015-01-23 13:09:30 +00:00
|
|
|
,message: null
|
2016-08-22 10:41:05 +00:00
|
|
|
,code: null
|
|
|
|
,file: null
|
|
|
|
,line: null
|
|
|
|
,trace: null
|
2015-01-23 13:09:30 +00:00
|
|
|
|
2016-10-20 08:37:08 +00:00
|
|
|
,initialize: function (exception, message, code, file, line, trace)
|
2015-01-23 13:09:30 +00:00
|
|
|
{
|
2016-10-20 08:37:08 +00:00
|
|
|
this.exception = exception;
|
2015-01-23 13:09:30 +00:00
|
|
|
this.message = message;
|
2016-10-20 08:37:08 +00:00
|
|
|
this.code = code;
|
|
|
|
this.file = file;
|
|
|
|
this.line = line;
|
|
|
|
this.trace = trace;
|
2015-01-23 13:09:30 +00:00
|
|
|
}
|
|
|
|
});
|
|
|
|
|