24 lines
387 B
JavaScript
24 lines
387 B
JavaScript
/**
|
|
* This class stores the database errors.
|
|
*/
|
|
module.exports = new Class
|
|
({
|
|
exception: null
|
|
,message: null
|
|
,code: null
|
|
,file: null
|
|
,line: null
|
|
,trace: null
|
|
|
|
,initialize: function (exception, message, code, file, line, trace)
|
|
{
|
|
this.exception = exception;
|
|
this.message = message;
|
|
this.code = code;
|
|
this.file = file;
|
|
this.line = line;
|
|
this.trace = trace;
|
|
}
|
|
});
|
|
|