Class BooleanArgument.BooleanParseException

    • Constructor Detail

      • BooleanParseException

        public BooleanParseException​(@NonNull String input,
                                     boolean liberal,
                                     @NonNull CommandContext<?> context)
        Construct a new boolean parse exception
        Parameters:
        input - Input
        liberal - Whether or not the parser allows truthy and falsy values, or strictly true/false
        context - Command context
    • Method Detail

      • getInput

        public String getInput()
        Get the supplied input
        Returns:
        String value
      • isLiberal

        public boolean isLiberal()
        Get the liberal boolean value
        Returns:
        Liberal value