Class ByteArgument.ByteParseException
- 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.ByteArgument.ByteParseException
-
- All Implemented Interfaces:
java.io.Serializable
- Enclosing class:
- ByteArgument<C>
public static final class ByteArgument.ByteParseException extends NumberParseException
Byte parse exception- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ByteParseException(@NonNull java.lang.String input, byte min, byte max, @NonNull CommandContext<?> context)Construct a new byte parse exception
-
Method Summary
Modifier and Type Method Description @NonNull java.lang.StringgetNumberType()Get the number typebooleanhasMax()If the parser had a maximum valuebooleanhasMin()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
-
ByteParseException
public ByteParseException(@NonNull java.lang.String input, byte min, byte max, @NonNull CommandContext<?> context)Construct a new byte parse exception- Parameters:
input- String inputmin- Minimum valuemax- Maximum valuecontext- Command context
-
-
Method Detail
-
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
public @NonNull java.lang.String getNumberType()
Description copied from class:NumberParseExceptionGet the number type- Specified by:
getNumberTypein classNumberParseException- Returns:
- Number type
-
-