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:
Serializable
- Enclosing class:
- LongArgument<C>
@API(status=STABLE)
public static final class LongArgument.LongParseException
extends NumberParseException
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionLongParseException(@NonNull String input, long min, long max, @NonNull CommandContext<?> commandContext) Deprecated.LongParseException(@NonNull String input, @NonNull LongArgument.LongParser<?> parser, @NonNull CommandContext<?> commandContext) Create a newLongArgument.LongParseException. -
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
-
LongParseException
@Deprecated @API(status=DEPRECATED, since="1.5.0") public LongParseException(@NonNull String input, long min, long max, @NonNull CommandContext<?> commandContext) Deprecated.Construct a new long parse exception- Parameters:
input- String inputmin- Minimum valuemax- Maximum valuecommandContext- Command context
-
LongParseException
@API(status=STABLE, since="1.5.0") public LongParseException(@NonNull String input, @NonNull LongArgument.LongParser<?> parser, @NonNull CommandContext<?> commandContext) Create a newLongArgument.LongParseException.- Parameters:
input- input stringparser- long 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()
-
LongParseException(String, LongParser, CommandContext)instead