Class BooleanParser.BooleanParseException

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

@API(status=STABLE) public static final class BooleanParser.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

    • input

      public @NonNull String input()
      Returns the supplied input.
      Returns:
      supplied input
    • liberal

      public boolean liberal()
      Returns whether the parser is liberal.
      Returns:
      true if the parser is liberal, false if not
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object