Class SelectorParseException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalArgumentException
cloud.commandframework.exceptions.parsing.ParserException
cloud.commandframework.bukkit.parsers.selector.SelectorParseException
All Implemented Interfaces:
Serializable

public final class SelectorParseException extends cloud.commandframework.exceptions.parsing.ParserException
EntitySelector parse exception
See Also:
  • Constructor Details

    • SelectorParseException

      public SelectorParseException(@NonNull String input, @NonNull cloud.commandframework.context.CommandContext<?> context, @NonNull SelectorParseException.FailureReason reason, @NonNull Class<?> parser)
      Construct a new EntitySelector parse exception
      Parameters:
      input - String input
      context - Command context
      reason - Reason for parse failure
      parser - The parser class
  • Method Details

    • getInput

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

      public @NonNull SelectorParseException.FailureReason getFailureReason()
      Get the reason of failure for the selector parser
      Returns:
      Failure reason
      Since:
      1.2.0