@ldrick/trade-indicators
Version:
Trade Indicators
13 lines (12 loc) • 375 B
JavaScript
/**
* 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);
}
}