@ldrick/trade-indicators
Version:
Trade Indicators
13 lines (12 loc) • 336 B
JavaScript
/**
* Error if two `Array` do not have the same length.
*
* @internal
*/
export class UnequalArraySizesError extends Error {
constructor(message = 'Amounts of given values are not equal.') {
super(message);
this.name = 'UnequalArraySizesError';
Object.setPrototypeOf(this, new.target.prototype);
}
}