mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-15 11:34:24 +03:00
14 lines
374 B
JavaScript
14 lines
374 B
JavaScript
|
function DatabaseVersion(message, context, help) {
|
||
|
this.message = message;
|
||
|
this.stack = new Error().stack;
|
||
|
this.statusCode = 500;
|
||
|
this.errorType = this.name;
|
||
|
this.context = context;
|
||
|
this.help = help;
|
||
|
}
|
||
|
|
||
|
DatabaseVersion.prototype = Object.create(Error.prototype);
|
||
|
DatabaseVersion.prototype.name = 'DatabaseVersion';
|
||
|
|
||
|
module.exports = DatabaseVersion;
|