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:
Serializable
- Enclosing class:
- ByteArgument<C>
Byte parse exception
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionByteParseException(@NonNull String input, byte min, byte max, @NonNull CommandContext<?> context) Deprecated.ByteParseException(@NonNull String input, @NonNull ByteArgument.ByteParser<?> parser, @NonNull CommandContext<?> context) Create a newByteArgument.ByteParseException. -
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
-
ByteParseException
@Deprecated @API(status=DEPRECATED, since="1.5.0") public ByteParseException(@NonNull String input, byte min, byte max, @NonNull CommandContext<?> context) Deprecated.Construct a new byte parse exception- Parameters:
input- String inputmin- Minimum valuemax- Maximum valuecontext- Command context
-
ByteParseException
@API(status=STABLE, since="1.5.0") public ByteParseException(@NonNull String input, @NonNull ByteArgument.ByteParser<?> parser, @NonNull CommandContext<?> context) Create a newByteArgument.ByteParseException.- Parameters:
input- input stringparser- byte parsercontext- 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()
-
ByteParseException(String, ByteParser, CommandContext)instead