@ldrick/trade-indicators
Version:
Trade Indicators
12 lines (11 loc) • 333 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);
}
}