UNPKG

benchmark-meter

Version:

benchmark-meter is a straightforward benchmarking tool designed for measuring the performance of algorithms

25 lines (24 loc) 886 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.NoAlgorithmsAddedException = exports.InvalidValueException = exports.DuplicateNameException = void 0; class DuplicateNameException extends Error { constructor(name) { super(`Algorithm with the name "${name}" already exists.`); this.name = 'DuplicateNameException'; } } exports.DuplicateNameException = DuplicateNameException; class InvalidValueException extends Error { constructor(message) { super(message); this.name = 'InvalidValueException'; } } exports.InvalidValueException = InvalidValueException; class NoAlgorithmsAddedException extends Error { constructor() { super('At least one algorithm must be added.'); this.name = 'NoAlgorithmsAddedException'; } } exports.NoAlgorithmsAddedException = NoAlgorithmsAddedException;