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:
java.io.Serializable
- Enclosing class:
- FloatArgument<C>
public static final class FloatArgument.FloatParseException extends NumberParseException
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FloatParseException(@NonNull java.lang.String input, float min, float max, @NonNull CommandContext<?> commandContext)
Construct a new float parse exception
-
Method Summary
Modifier and Type Method Description @NonNull java.lang.String
getNumberType()
Get the number typeboolean
hasMax()
If the parser had a maximum valueboolean
hasMin()
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
-
FloatParseException
public FloatParseException(@NonNull java.lang.String input, float min, float max, @NonNull CommandContext<?> commandContext)
Construct a new float parse exception- Parameters:
input
- String inputmin
- Minimum valuemax
- Maximum valuecommandContext
- Command context
-
-
Method Detail
-
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
public @NonNull java.lang.String getNumberType()
Description copied from class:NumberParseException
Get the number type- Specified by:
getNumberType
in classNumberParseException
- Returns:
- Number type
-
-