UNPKG

@averagehelper/corde

Version:

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

20 lines (19 loc) 592 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.QueueFunctionError = void 0; const defaults_1 = require("./defaults"); /** * Related timeout error. */ class QueueFunctionError extends Error { /** * Throws when a function in **Queue** is executed with an error. * * @param message Custom message to this error */ constructor(message = defaults_1.Errors.QUEUE_FUNCTION_ERROR_MESSAGE) { super(message); this.name = defaults_1.Errors.QUEUE_FUNCTION_ERROR; } } exports.QueueFunctionError = QueueFunctionError;