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 TypeClassDescriptionclass
Exception 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 void
AttachmentDataParser.validate
(Attachment attachment) void
AttachmentParserStages.Validator.validate
(Attachment attachment) Validates that the attachment is appropriate prior to fetching it.default void
TextFileParser.validate
(Attachment attachment) default R
ArgumentParser.validateRaw
(R raw) Validates the raw value before parsing.default Attachment
AttachmentDataParser.validateRaw
(Attachment raw) default P
ChoicesParser.validateRaw
(P raw) default P
NumberParser.validateRaw
(P raw) default String
StringParser.validateRaw
(String raw) default P
ChoicesParser.verifyChoice
(P value) Verifies that the given value is one of the allowed choices.default P
NumberParser.verifyInRange
(P value) Verifies that the given value is within the allowed range for this parser.default String
StringParser.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 theerror
record 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 P
Retrives the parser to use for the given URL.static URL
Parses 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 aFailure
record 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 Snowflake
EntityRef.RoleRef.defaultGuild
(CommandContext context) Obtains the default guild based on the context.static Snowflake
EntityRef.RoleRef.everyoneId
(CommandContext context) Obtains the ID for the@everyone
role.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 R
Parses the given string as a reference URL.final R
Parses 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.