Class StringArgument.StringParseException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalArgumentException
cloud.commandframework.exceptions.parsing.ParserException
cloud.commandframework.arguments.standard.StringArgument.StringParseException
- All Implemented Interfaces:
Serializable
- Enclosing class:
- StringArgument<C>
@API(status=STABLE)
public static final class StringArgument.StringParseException
extends ParserException
- See Also:
-
Constructor Summary
ConstructorDescriptionStringParseException
(@NonNull String input, @NonNull StringArgument.StringMode stringMode, @NonNull CommandContext<?> context) Construct a new string parse exception -
Method Summary
Modifier and TypeMethodDescription@NonNull String
getInput()
Get the input provided by the sender@NonNull StringArgument.StringMode
Get the string modeMethods 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
-
StringParseException
public StringParseException(@NonNull String input, @NonNull StringArgument.StringMode stringMode, @NonNull CommandContext<?> context) Construct a new string parse exception- Parameters:
input
- InputstringMode
- String modecontext
- Command context
-
-
Method Details
-
getInput
Get the input provided by the sender- Returns:
- Input
-
getStringMode
Get the string mode- Returns:
- String mode
-