Uses of Class
dev.sympho.modular_commands.api.command.parameter.parse.InvalidArgumentException
Packages that use InvalidArgumentException
Package
Description
Interfaces defining how received arguments are parsed.
Implementations for command contexts.
Parsing utilities.
Parsers for Discord entities.
-
Uses of InvalidArgumentException in dev.sympho.modular_commands.api.command.parameter.parse
Modifier and TypeClassDescriptionclassException that indicates that some items in an argument list were invalid.Methods in dev.sympho.modular_commands.api.command.parameter.parse that throw InvalidArgumentExceptionModifier and TypeMethodDescriptionParserFunction.apply(CommandContext context, R raw) ArgumentParser.parse(CommandContext context, R raw) AttachmentParserStages.Parser.parse(CommandContext context, reactor.netty.http.client.HttpClientResponse response, reactor.netty.ByteBufMono body) Parses the response from fetching the attachment file into the corresponding value.ParserFunction.parse(CommandContext context, R raw) Parses the given raw argument from the user into the corresponding value.ParserFunction.PostParser.parse(CommandContext context, R raw) Parsers.Functor.parse(CommandContext context, R raw) Parses the given raw argument from the user into the corresponding value.Parsers.Simple.parse(CommandContext context, R raw) Parsers.Synchronous.parse(CommandContext context, R raw) TextFileParser.parse(CommandContext context, String content) Parses the content of the attachment file.TextFileParser.parse(CommandContext context, reactor.netty.http.client.HttpClientResponse response, reactor.netty.ByteBufMono body) ArgumentParser.parseArgument(CommandContext context, R raw) Parses the given raw argument from the user into the corresponding value.AttachmentDataParser.parseArgument(CommandContext context, Attachment raw) ListParser.parseArgument(CommandContext context, String raw) Parses the given raw argument from the user into the corresponding value.Parsers.Synchronous.parseNow(CommandContext context, R raw) Parses the given raw argument from the user into the corresponding value.default voidAttachmentDataParser.validate(Attachment attachment) voidAttachmentParserStages.Validator.validate(Attachment attachment) Validates that the attachment is appropriate prior to fetching it.default voidTextFileParser.validate(Attachment attachment) default RArgumentParser.validateRaw(R raw) Validates the raw value before parsing.default AttachmentAttachmentDataParser.validateRaw(Attachment raw) default PChoicesParser.validateRaw(P raw) default PNumberParser.validateRaw(P raw) default StringStringParser.validateRaw(String raw) default PChoicesParser.verifyChoice(P value) Verifies that the given value is one of the allowed choices.default PNumberParser.verifyInRange(P value) Verifies that the given value is within the allowed range for this parser.default StringStringParser.verifyLength(String raw) Verifies that the given string is within the allowed length range for this parser. -
Uses of InvalidArgumentException in dev.sympho.modular_commands.impl.context
Methods in dev.sympho.modular_commands.impl.context that throw InvalidArgumentExceptionModifier and TypeMethodDescriptionMessageContextImpl.getFloatArgument(String name) MessageContextImpl.getIntegerArgument(String name) MessageContextImpl.getSnowflakeArgument(String name, SnowflakeParser.Type type) -
Uses of InvalidArgumentException in dev.sympho.modular_commands.utils.parse
Methods in dev.sympho.modular_commands.utils.parse that return InvalidArgumentExceptionModifier and TypeMethodDescriptionTryParser.Failure.error()Returns the value of theerrorrecord component.TryParser.Result.error()The error encountered in parsing, if any.TryParser.Success.error()Methods in dev.sympho.modular_commands.utils.parse that throw InvalidArgumentExceptionModifier and TypeMethodDescriptionprotected PRetrives the parser to use for the given URL.static URLParses the given string into a URL.FunctorUrlParser.parse(CommandContext context, URL url) Parses the given URL.default Mono<TryParser.Result<R,T>> TryParser.parse(CommandContext context, R item) UrlParser.ChoiceBase.parse(CommandContext context, URL url) UrlParser.parse(CommandContext context, String raw) UrlParser.parse(CommandContext context, URL url) Parses the given URL.UrlParser.PostParser.parse(CommandContext context, URL url) Constructors in dev.sympho.modular_commands.utils.parse with parameters of type InvalidArgumentExceptionModifierConstructorDescriptionFailure(R raw, InvalidArgumentException error) Creates an instance of aFailurerecord class. -
Uses of InvalidArgumentException in dev.sympho.modular_commands.utils.parse.entity
Methods in dev.sympho.modular_commands.utils.parse.entity that throw InvalidArgumentExceptionModifier and TypeMethodDescriptionstatic SnowflakeEntityRef.RoleRef.defaultGuild(CommandContext context) Obtains the default guild based on the context.static SnowflakeEntityRef.RoleRef.everyoneId(CommandContext context) Obtains the ID for the@everyonerole.EntityMentionParser.parse(CommandContext context, String raw) EntityParser.parse(CommandContext context, String raw) EntityRefMentionParser.parse(CommandContext context, String raw) EntityRefParser.parse(CommandContext context, String raw) EntityRefUrlParser.parse(CommandContext context, URL url) final RParses the given string as a reference URL.final RParses the given URL into the corresponding reference.EntityUrlParser.parse(CommandContext context, URL url) Parses the given string.EntityRefMentionParser.parseRef(CommandContext context, String raw) Parses the given string.EntityRefParser.parseRef(CommandContext context, String raw) Parses the given string.RoleRefMentionParser.parseRef(CommandContext context, String raw) RoleRefParser.parseRef(CommandContext context, String raw) Constructors in dev.sympho.modular_commands.utils.parse.entity that throw InvalidArgumentExceptionModifierConstructorDescriptionRoleRef(CommandContext context, Snowflake id) Creates a new instance when only the ID is specified.