UNPKG

unleash-server

Version:

Unleash is an enterprise ready feature toggles service. It provides different strategies for handling feature toggles.

20 lines 622 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); class NoAccessError extends Error { constructor(permission) { super(); Error.captureStackTrace(this, this.constructor); this.name = this.constructor.name; this.permission = permission; this.message = `You need permission=${permission} to perform this action`; } toJSON() { return { permission: this.permission, message: this.message, }; } } exports.default = NoAccessError; module.exports = NoAccessError; //# sourceMappingURL=no-access-error.js.map