UNPKG

@ldrick/trade-indicators

Version:
12 lines (11 loc) 372 B
/** * Error for comparable periods, where one must exceed the other. * @internal */ export class PeriodSizeMissmatchError extends Error { constructor(periodBig, periodShort) { super(`Period ${periodBig} must be greater than ${periodShort}`); this.name = 'PeriodSizeMissmatchError'; Object.setPrototypeOf(this, new.target.prototype); } }