UNPKG

@sapphire/framework

Version:

Discord bot framework built for advanced and amazing bots.

25 lines (23 loc) 638 B
import { UserError } from "./UserError.mjs"; //#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 UserError { constructor(options) { super({ ...options, identifier: options.identifier ?? options.argument.name }); this.argument = options.argument; this.parameter = options.parameter; } get name() { return "ArgumentError"; } }; //#endregion export { ArgumentError }; //# sourceMappingURL=ArgumentError.mjs.map