Class FloatArgument.FloatParseException
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.FloatArgument.FloatParseException
- All Implemented Interfaces:
Serializable
- Enclosing class:
- FloatArgument<C>
@API(status=STABLE)
public static final class FloatArgument.FloatParseException
extends NumberParseException
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionFloatParseException(@NonNull String input, float min, float max, @NonNull CommandContext<?> commandContext) Deprecated.FloatParseException(@NonNull String input, @NonNull FloatArgument.FloatParser<?> parser, @NonNull CommandContext<?> commandContext) Create a newFloatArgument.FloatParseException. -
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
-
FloatParseException
@Deprecated @API(status=DEPRECATED, since="1.5.0") public FloatParseException(@NonNull String input, float min, float max, @NonNull CommandContext<?> commandContext) Deprecated.Construct a new float parse exception- Parameters:
input- String inputmin- Minimum valuemax- Maximum valuecommandContext- Command context
-
FloatParseException
@API(status=STABLE, since="1.5.0") public FloatParseException(@NonNull String input, @NonNull FloatArgument.FloatParser<?> parser, @NonNull CommandContext<?> commandContext) Create a newFloatArgument.FloatParseException.- Parameters:
input- input stringparser- float 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()
-
FloatParseException(String, FloatParser, CommandContext)instead