21 lines
298 B
JavaScript
21 lines
298 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 (domain, code, message)
|
|
{
|
|
this.domain = domain;
|
|
this.code = code;
|
|
this.message = message;
|
|
}
|
|
});
|
|
|