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
ConstructorsConstructorDescriptionIntegerParseException(@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, getMinMethods inherited from class cloud.commandframework.exceptions.parsing.ParserException
captionVariables, errorCaption, getArgumentParserClass, getContext, getMessageMethods 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: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
Description copied from class:NumberParseExceptionGet the number type- Specified by:
getNumberTypein classNumberParseException- Returns:
- Number type
-
equals
-
hashCode
public int hashCode()
-
IntegerParseException(String, IntegerParser, CommandContext)instead