UNPKG

unleash-server

Version:

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

18 lines 480 B
import { UnleashError } from './unleash-error.js'; class PatternError extends UnleashError { constructor(message, details) { super(message); this.statusCode = 400; this.details = details?.map((description) => ({ message: description, })); } toJSON() { return { ...super.toJSON(), details: this.details, }; } } export default PatternError; //# sourceMappingURL=pattern-error.js.map