@komondor-lab/core
Version:
Komondor core library
33 lines • 1.3 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const make_error_1 = require("make-error");
class MissingConfigForFeature extends make_error_1.BaseError {
// istanbul ignore next
constructor(feature, configPath) {
super(`Configuring ${configPath} is required to use ${feature}.`);
this.feature = feature;
this.configPath = configPath;
Object.setPrototypeOf(this, new.target.prototype);
}
}
exports.MissingConfigForFeature = MissingConfigForFeature;
class ConfigPropertyIsInvalid extends make_error_1.BaseError {
// istanbul ignore next
constructor(property, cause) {
super(`The property '${property}' is invalid: ${cause}`);
this.property = property;
this.cause = cause;
Object.setPrototypeOf(this, new.target.prototype);
}
}
exports.ConfigPropertyIsInvalid = ConfigPropertyIsInvalid;
class ConfigPropertyNotRecognized extends make_error_1.BaseError {
// istanbul ignore next
constructor(property) {
super(`The property '${property}' is not a valid komondor option.`);
this.property = property;
Object.setPrototypeOf(this, new.target.prototype);
}
}
exports.ConfigPropertyNotRecognized = ConfigPropertyNotRecognized;
//# sourceMappingURL=errors.js.map