unleash-server
Version:
Unleash is an enterprise ready feature toggles service. It provides different strategies for handling feature toggles.
25 lines • 733 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
class ProjectWithoutOwnerError extends Error {
constructor() {
super();
Error.captureStackTrace(this, this.constructor);
this.name = this.constructor.name;
this.message = 'A project must have at least one owner';
}
toJSON() {
const obj = {
isJoi: true,
name: this.constructor.name,
details: [
{
validationErrors: [],
message: this.message,
},
],
};
return obj;
}
}
exports.default = ProjectWithoutOwnerError;
//# sourceMappingURL=project-without-owner-error.js.map