UNPKG

@coko/server

Version:

Reusable server for use by Coko's projects

20 lines 698 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ConfigUnknownPropertyError = exports.ConfigSchemaError = void 0; class ConfigSchemaError extends Error { constructor(message) { super(message); this.name = 'ConfigSchemaError'; this.message = `\n${message}`; } } exports.ConfigSchemaError = ConfigSchemaError; class ConfigUnknownPropertyError extends Error { constructor(key) { super(); this.name = 'ConfigUnknownPropertyError'; this.message = `Key "${key}" is not defined in the config schema.`; } } exports.ConfigUnknownPropertyError = ConfigUnknownPropertyError; //# sourceMappingURL=errors.js.map