UNPKG

unleash-server

Version:

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

24 lines 679 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.OperationDeniedError = void 0; class OperationDeniedError extends Error { constructor(message) { super(); Error.captureStackTrace(this, this.constructor); this.name = this.constructor.name; this.message = message; } toJSON() { return { isJoi: true, name: this.constructor.name, details: [ { message: this.message, }, ], }; } } exports.OperationDeniedError = OperationDeniedError; //# sourceMappingURL=operation-denied-error.js.map