* Returns an error object. * @param {string} path current path * @param {EXPECTED_ANY} value value at the error location * @param {string} message message explaining the problem * @returns {Error} an error object
(path, value, message)
| 457 | * @returns {Error} an error object |
| 458 | */ |
| 459 | error(path, value, message) { |
| 460 | return new Error( |
| 461 | `Compiling RuleSet failed: ${message} (at ${path}: ${value})` |
| 462 | ); |
| 463 | } |
| 464 | } |
| 465 | |
| 466 | module.exports = RuleSetCompiler; |
no outgoing calls
no test coverage detected