2015-01-23 13:09:30 +00:00
|
|
|
/**
|
|
|
|
* This class stores the database errors.
|
|
|
|
**/
|
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
|
|
|
|
|
|
|
,initialize: function (domain, code, message)
|
|
|
|
{
|
|
|
|
this.domain = domain;
|
|
|
|
this.code = code;
|
|
|
|
this.message = message;
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|