@averagehelper/corde
Version:
A simple library for Discord bot tests. (Republished fork to demonstrate a bugfix)
15 lines (14 loc) • 442 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.PropertyError = void 0;
const defaults_1 = require("./defaults");
/**
* Throws when a requried property was not informed
*/
class PropertyError extends Error {
constructor(message = defaults_1.Errors.PROPERTY_ERROR_MESSAGE) {
super(message);
this.name = defaults_1.Errors.PROPERTY_ERROR;
}
}
exports.PropertyError = PropertyError;