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:
java.io.Serializable
- Enclosing class:
- IntegerArgument<C>
public static final class IntegerArgument.IntegerParseException extends NumberParseException
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description IntegerParseException(@NonNull java.lang.String input, int min, int max, @NonNull CommandContext<?> commandContext)Construct a new integer parse exception
-
Method Summary
Modifier and Type Method Description @NonNull java.lang.StringgetNumberType()Get the number typebooleanhasMax()If the parser had a maximum valuebooleanhasMin()If the parser had a minimum value-
Methods inherited from class cloud.commandframework.exceptions.parsing.NumberParseException
getInput, getMax, getMin
-
Methods inherited from class cloud.commandframework.exceptions.parsing.ParserException
getArgumentParserClass, getContext, getMessage
-
-
-
-
Constructor Detail
-
IntegerParseException
public IntegerParseException(@NonNull java.lang.String input, int min, int max, @NonNull CommandContext<?> commandContext)Construct a new integer parse exception- Parameters:
input- String inputmin- Minimum valuemax- Maximum valuecommandContext- Command context
-
-
Method Detail
-
hasMin
public boolean hasMin()
Description copied from class:NumberParseExceptionIf the parser had a minimum value- Specified by:
hasMinin classNumberParseException- Returns:
trueif there was a minimum value, elsefalse
-
hasMax
public boolean hasMax()
Description copied from class:NumberParseExceptionIf the parser had a maximum value- Specified by:
hasMaxin classNumberParseException- Returns:
trueif there was a maximum value, elsefalse
-
getNumberType
public @NonNull java.lang.String getNumberType()
Description copied from class:NumberParseExceptionGet the number type- Specified by:
getNumberTypein classNumberParseException- Returns:
- Number type
-
-