Class BooleanArgument.BooleanParseException

    • Constructor Summary

      Constructors 
      Constructor Description
      BooleanParseException​(@NonNull java.lang.String input, boolean liberal, @NonNull CommandContext<?> context)
      Construct a new boolean parse exception
    • Method Summary

      Modifier and Type Method Description
      java.lang.String getInput()
      Get the supplied input
      boolean isLiberal()
      Get the liberal boolean value
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • BooleanParseException

        public BooleanParseException​(@NonNull java.lang.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 java.lang.String getInput()
        Get the supplied input
        Returns:
        String value
      • isLiberal

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