Class LongArgument.LongParseException
- 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.LongArgument.LongParseException
-
- All Implemented Interfaces:
java.io.Serializable
- Enclosing class:
- LongArgument<C>
public static final class LongArgument.LongParseException extends NumberParseException
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LongParseException(@NonNull java.lang.String input, long min, long max, @NonNull CommandContext<?> commandContext)
Construct a new long 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
-
LongParseException
public LongParseException(@NonNull java.lang.String input, long min, long max, @NonNull CommandContext<?> commandContext)
Construct a new long 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
-
-