Class ShortArgument.ShortParseException
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.ShortArgument.ShortParseException
- All Implemented Interfaces:
Serializable
- Enclosing class:
- ShortArgument<C>
- See Also:
- Serialized Form
-
Constructor Summary
ConstructorDescriptionShortParseException(@NonNull String input, short min, short max, @NonNull CommandContext<?> commandContext)
Deprecated.ShortParseException(@NonNull String input, @NonNull ShortArgument.ShortParser<?> parser, @NonNull CommandContext<?> commandContext)
Create a newShortArgument.ShortParseException
. -
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
-
ShortParseException
@Deprecated public ShortParseException(@NonNull String input, short min, short max, @NonNull CommandContext<?> commandContext)Deprecated.Construct a new short parse exception- Parameters:
input
- String inputmin
- Minimum valuemax
- Maximum valuecommandContext
- Command context
-
ShortParseException
public ShortParseException(@NonNull String input, @NonNull ShortArgument.ShortParser<?> parser, @NonNull CommandContext<?> commandContext)Create a newShortArgument.ShortParseException
.- Parameters:
input
- input stringparser
- short 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
-
ShortParseException(String, ShortParser, CommandContext)
instead