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.
-
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 TypeMethodDescriptionParses the entity ID from the raw argument.protected PRetrives the parser to use for the given URL.static URLParses the given string into a URL.EntityParser.parse(CommandContext context, String raw) EntityUrlParser.parse(CommandContext context, URL url) FunctorUrlParser.parse(CommandContext context, URL url) Parses the given URL.RoleParser.parse(CommandContext context, String raw) 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) static SnowflakeParses a snowflake ID from an argument string.ChannelParser.parseMention(String mention) abstract StringMentionableParser.parseMention(String mention) Parses the entity ID from a text mention.MentionableParser.parseMention(String mention, String prefix) Parses the entity ID from a text mention.RoleParser.parseMention(String mention) UserParser.parseMention(String mention) Validates that a channel is of the given type.Constructors in dev.sympho.modular_commands.utils.parse with parameters of type InvalidArgumentExceptionModifierConstructorDescriptionFailure(R raw, InvalidArgumentException error) Creates an instance of aFailurerecord class.