UNPKG

unleash-server

Version:

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

24 lines 670 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); class InvalidOperationError 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.default = InvalidOperationError; module.exports = InvalidOperationError; //# sourceMappingURL=invalid-operation-error.js.map