Class IntegerArgument.IntegerParseException
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
cloud.commandframework.arguments.standard.IntegerArgument.IntegerParseException
- All Implemented Interfaces:
Serializable
- Enclosing class:
- IntegerArgument<C>
@API(status=STABLE)
public static final class IntegerArgument.IntegerParseException
extends NumberParseException
- See Also:
-
Constructor Summary
ConstructorDescriptionIntegerParseException
(@NonNull String input, int min, int max, @NonNull CommandContext<?> commandContext) Deprecated.IntegerParseException
(@NonNull String input, @NonNull IntegerArgument.IntegerParser<?> parser, @NonNull CommandContext<?> commandContext) Create a newIntegerArgument.IntegerParseException
. -
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
-
IntegerParseException
@Deprecated @API(status=DEPRECATED, since="1.5.0") public IntegerParseException(@NonNull String input, int min, int max, @NonNull CommandContext<?> commandContext) Deprecated.Construct a new integer parse exception- Parameters:
input
- String inputmin
- Minimum valuemax
- Maximum valuecommandContext
- Command context
-
IntegerParseException
@API(status=STABLE, since="1.5.0") public IntegerParseException(@NonNull String input, @NonNull IntegerArgument.IntegerParser<?> parser, @NonNull CommandContext<?> commandContext) Create a newIntegerArgument.IntegerParseException
.- Parameters:
input
- input stringparser
- integer parsercommandContext
- command context- Since:
- 1.5.0
-
-
Method Details
-
hasMin
public boolean hasMin()Description copied from class:NumberParseException
If the parser had a minimum value- Specified by:
hasMin
in classNumberParseException
- Returns:
true
if there was a minimum value, elsefalse
-
hasMax
public boolean hasMax()Description copied from class:NumberParseException
If the parser had a maximum value- Specified by:
hasMax
in classNumberParseException
- Returns:
true
if there was a maximum value, elsefalse
-
getNumberType
Description copied from class:NumberParseException
Get the number type- Specified by:
getNumberType
in classNumberParseException
- Returns:
- Number type
-
equals
-
hashCode
public int hashCode()
-
IntegerParseException(String, IntegerParser, CommandContext)
instead