UNPKG

djs-systems

Version:

The simplest way to build complex Discord bots.

19 lines (18 loc) 560 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.HttpsError = void 0; class HttpsError extends Error { /** * Emit errors and provide sufficient details to help users debug easily * @param {String} function * @param {String} error */ constructor(options = {}) { const msg = `HttpsError | An Error Occured:\n\n${options.error}`; super(msg); } } exports.HttpsError = HttpsError; Object.defineProperty(HttpsError.prototype, 'name', { value: 'HttpsError' });