UNPKG

unleash-server

Version:

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

25 lines 750 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); class IncompatibleProjectError extends Error { constructor(targetProject) { super(); Error.captureStackTrace(this, this.constructor); this.name = this.constructor.name; this.message = `${targetProject} is not a compatible target`; } toJSON() { const obj = { isJoi: true, name: this.constructor.name, details: [ { validationErrors: [], message: this.message, }, ], }; return obj; } } exports.default = IncompatibleProjectError; //# sourceMappingURL=incompatible-project-error.js.map