UNPKG

@averagehelper/corde

Version:

A simple library for Discord bot tests. (Republished fork to demonstrate a bugfix)

19 lines (18 loc) 528 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ConfigError = void 0; const defaults_1 = require("./defaults"); /** * Related to corde configs. */ class ConfigError extends Error { /** * Throws when a error is found in corde configs. * @param message Custom message to this error */ constructor(message = defaults_1.Errors.CONFIG_ERROR_MESSAGE) { super(message); this.name = defaults_1.Errors.CONFIG_ERROR; } } exports.ConfigError = ConfigError;