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
ConstructorDescriptionFloatParseException
(@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, 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
-
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: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()
-
FloatParseException(String, FloatParser, CommandContext)
instead