@sapphire/framework
Version:
Discord bot framework built for advanced and amazing bots.
26 lines (24 loc) • 714 B
JavaScript
;
const require_lib_errors_UserError = require('./UserError.cjs');
//#region src/lib/errors/ArgumentError.ts
/**
* Errors thrown by the argument parser
* @since 1.0.0
* @property name This will be `'ArgumentError'` and can be used to distinguish the type of error when any error gets thrown
*/
var ArgumentError = class extends require_lib_errors_UserError.UserError {
constructor(options) {
super({
...options,
identifier: options.identifier ?? options.argument.name
});
this.argument = options.argument;
this.parameter = options.parameter;
}
get name() {
return "ArgumentError";
}
};
//#endregion
exports.ArgumentError = ArgumentError;
//# sourceMappingURL=ArgumentError.cjs.map