UNPKG

unleash-server

Version:

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

25 lines 746 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); class PasswordUndefinedError extends Error { constructor() { super(); Error.captureStackTrace(this, this.constructor); this.name = this.constructor.name; this.message = 'Password cannot be empty or undefined'; } toJSON() { const obj = { isJoi: true, name: this.constructor.name, details: [ { validationErrors: [], message: 'Password cannot be empty or undefined', }, ], }; return obj; } } exports.default = PasswordUndefinedError; //# sourceMappingURL=password-undefined.js.map