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:
java.io.Serializable
public final class SelectorParseException extends cloud.commandframework.exceptions.parsing.ParserExceptionEntitySelector parse exception- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSelectorParseException.FailureReasonReasons for which selector parsing may fail
-
Constructor Summary
Constructors Constructor Description SelectorParseException(@NonNull java.lang.String input, @NonNull cloud.commandframework.context.CommandContext<?> context, @NonNull SelectorParseException.FailureReason reason, @NonNull java.lang.Class<?> parser)Construct a new EntitySelector parse exception
-
Method Summary
Modifier and Type Method Description @NonNull SelectorParseException.FailureReasongetFailureReason()Get the reason of failure for the selector parser@NonNull java.lang.StringgetInput()Get the supplied input-
Methods inherited from class cloud.commandframework.exceptions.parsing.ParserException
getArgumentParserClass, getContext, getMessage
-
-
-
-
Constructor Detail
-
SelectorParseException
public SelectorParseException(@NonNull java.lang.String input, @NonNull cloud.commandframework.context.CommandContext<?> context, @NonNull SelectorParseException.FailureReason reason, @NonNull java.lang.Class<?> parser)Construct a new EntitySelector parse exception- Parameters:
input- String inputcontext- Command contextreason- Reason for parse failureparser- The parser class
-
-
Method Detail
-
getInput
public @NonNull java.lang.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
-
-