2015-01-23 13:09:30 +00:00
|
|
|
/**
|
|
|
|
* This class stores the database errors.
|
2022-05-26 06:08:31 +00:00
|
|
|
*/
|
2022-11-28 08:51:31 +00:00
|
|
|
module.exports = class JsonException {
|
|
|
|
constructor(exception, message, code, file, line, trace, statucCode) {
|
|
|
|
this.name = 'JsonException';
|
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;
|
2022-11-28 08:51:31 +00:00
|
|
|
this.statusCode = statucCode;
|
2015-01-23 13:09:30 +00:00
|
|
|
}
|
2022-11-28 08:51:31 +00:00
|
|
|
}
|