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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
Reasons for which selector parsing may fail -
Constructor Summary
ConstructorsConstructorDescriptionSelectorParseException
(@NonNull String input, @NonNull cloud.commandframework.context.CommandContext<?> context, @NonNull SelectorParseException.FailureReason reason, @NonNull Class<?> parser) Construct a new EntitySelector parse exception -
Method Summary
Modifier and TypeMethodDescription@NonNull SelectorParseException.FailureReason
Get the reason of failure for the selector parser@NonNull String
getInput()
Get the supplied inputMethods inherited from class cloud.commandframework.exceptions.parsing.ParserException
captionVariables, errorCaption, getArgumentParserClass, getContext, getMessage
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
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 inputcontext
- Command contextreason
- Reason for parse failureparser
- The parser class
-
-
Method Details
-
getInput
Get the supplied input- Returns:
- String value
-
getFailureReason
Get the reason of failure for the selector parser- Returns:
- Failure reason
- Since:
- 1.2.0
-