UNPKG

@foal/core

Version:

Full-featured Node.js framework, with no complexity

16 lines (15 loc) 475 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ConfigNotFoundError = void 0; class ConfigNotFoundError extends Error { key; msg; name = 'ConfigNotFoundError'; constructor(key, msg) { super(); this.key = key; this.msg = msg; this.message = `No value found for the configuration key "${key}".${msg === undefined ? '' : ` ${msg}`}`; } } exports.ConfigNotFoundError = ConfigNotFoundError;