Class PlainNumberVariableValueArgument.LongParseException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalArgumentException
cloud.commandframework.exceptions.parsing.ParserException
cloud.commandframework.exceptions.parsing.NumberParseException
rocks.gravili.notquests.paper.commands.arguments.variables.PlainNumberVariableValueArgument.LongParseException
- All Implemented Interfaces:
Serializable
- Enclosing class:
- PlainNumberVariableValueArgument<C>
public static final class PlainNumberVariableValueArgument.LongParseException
extends cloud.commandframework.exceptions.parsing.NumberParseException
- See Also:
-
Constructor Summary
ConstructorDescriptionLongParseException
(@NonNull String input, long min, long max, @NonNull cloud.commandframework.context.CommandContext<?> commandContext, NotQuests main) Deprecated.LongParseException
(@NonNull String input, PlainNumberVariableValueArgument.LongParser<?> parser, @NonNull cloud.commandframework.context.CommandContext<?> commandContext) Create a newPlainNumberVariableValueArgument.LongParseException
. -
Method Summary
Methods inherited from class cloud.commandframework.exceptions.parsing.NumberParseException
getInput, getMax, getMin
Methods inherited from class cloud.commandframework.exceptions.parsing.ParserException
captionVariables, errorCaption, getArgumentParserClass, getContext, getMessage
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
LongParseException
@Deprecated public LongParseException(@NonNull String input, long min, long max, @NonNull cloud.commandframework.context.CommandContext<?> commandContext, NotQuests main) Deprecated.Construct a new Long parse exception- Parameters:
input
- String inputmin
- Minimum valuemax
- Maximum valuecommandContext
- Command context
-
LongParseException
public LongParseException(@NonNull String input, PlainNumberVariableValueArgument.LongParser<?> parser, @NonNull cloud.commandframework.context.CommandContext<?> commandContext) Create a newPlainNumberVariableValueArgument.LongParseException
.- Parameters:
input
- input stringparser
- Long parsercommandContext
- command context- Since:
- 1.5.0
-
-
Method Details
-
hasMin
public boolean hasMin()- Specified by:
hasMin
in classcloud.commandframework.exceptions.parsing.NumberParseException
-
hasMax
public boolean hasMax()- Specified by:
hasMax
in classcloud.commandframework.exceptions.parsing.NumberParseException
-
getNumberType
- Specified by:
getNumberType
in classcloud.commandframework.exceptions.parsing.NumberParseException
-
LongParseException(String, PlainNumberVariableValueArgument.LongParser, CommandContext)
instead