UNPKG

@ldrick/trade-indicators

Version:
13 lines (12 loc) 375 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); } }