Class BooleanArgument.BooleanParseException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalArgumentException
cloud.commandframework.exceptions.parsing.ParserException
cloud.commandframework.arguments.standard.BooleanArgument.BooleanParseException
- All Implemented Interfaces:
Serializable
- Enclosing class:
- BooleanArgument<C>
Boolean parse exception
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionBooleanParseException
(@NonNull String input, boolean liberal, @NonNull CommandContext<?> context) Construct a new boolean parse exception -
Method Summary
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
-
BooleanParseException
public BooleanParseException(@NonNull String input, boolean liberal, @NonNull CommandContext<?> context) Construct a new boolean parse exception- Parameters:
input
- Inputliberal
- Whether or not the parser allows truthy and falsy values, or strictly true/falsecontext
- Command context
-
-
Method Details
-
getInput
Get the supplied input- Returns:
- String value
-
isLiberal
public boolean isLiberal()Get the liberal boolean value- Returns:
- Liberal value
-