| 123456789101112131415161718192021222324 |
- import {format} from '@e22m4u/util-format';
- /**
- * Invalid operator value error.
- */
- export class InvalidOperatorValueError extends Error {
- /**
- * Constructor.
- *
- * @param {string} operator
- * @param {string} expected
- * @param {*} value
- */
- constructor(operator, expected, value) {
- super(
- format(
- 'Condition of {%s: ...} should have %s, %v given.',
- operator,
- expected,
- value,
- ),
- );
- }
- }
|