Ghost/core/server/errors/nopermissionerror.js
Harry Wolff 469aaa398c Add jscs task to grunt file and clean up files to adhere to jscs rules.
resolves #1920

- updates all files to conform to style settings.
2014-09-17 21:44:29 -04:00

15 lines
393 B
JavaScript

// # No Permission Error
// Custom error class with status code and type prefilled.
function NoPermissionError(message) {
this.message = message;
this.stack = new Error().stack;
this.code = 403;
this.type = this.name;
}
NoPermissionError.prototype = Object.create(Error.prototype);
NoPermissionError.prototype.name = 'NoPermissionError';
module.exports = NoPermissionError;