Class BooleanArgument.BooleanParseException

All Implemented Interfaces:
Serializable
Enclosing class:
BooleanArgument<C>

@API(status=STABLE) public static final class BooleanArgument.BooleanParseException extends ParserException
Boolean parse exception
See Also:
  • Constructor Details

    • BooleanParseException

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

    • getInput

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

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

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object