Class DoubleArgument.DoubleParseException
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.DoubleArgument.DoubleParseException
- All Implemented Interfaces:
Serializable
- Enclosing class:
- DoubleArgument<C>
@API(status=STABLE)
public static final class DoubleArgument.DoubleParseException
extends NumberParseException
- See Also:
-
Constructor Summary
ConstructorDescriptionDoubleParseException
(@NonNull String input, double min, double max, @NonNull CommandContext<?> commandContext) Deprecated.DoubleParseException
(@NonNull String input, @NonNull DoubleArgument.DoubleParser<?> parser, @NonNull CommandContext<?> commandContext) Create a newDoubleArgument.DoubleParseException
. -
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
-
DoubleParseException
@Deprecated public DoubleParseException(@NonNull String input, double min, double max, @NonNull CommandContext<?> commandContext) Deprecated.Construct a new double parse exception- Parameters:
input
- String inputmin
- Minimum valuemax
- Maximum valuecommandContext
- Command context
-
DoubleParseException
public DoubleParseException(@NonNull String input, @NonNull DoubleArgument.DoubleParser<?> parser, @NonNull CommandContext<?> commandContext) Create a newDoubleArgument.DoubleParseException
.- Parameters:
input
- input stringparser
- double 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()
-
DoubleParseException(String, DoubleParser, CommandContext)
instead