Class ParserException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalArgumentException
cloud.commandframework.exceptions.parsing.ParserException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
BooleanArgument.BooleanParseException
,CharArgument.CharParseException
,EnumArgument.EnumParseException
,FlagArgument.FlagParseException
,NoInputProvidedException
,NumberParseException
,StringArgument.StringParseException
,UUIDArgument.UUIDParseException
- See Also:
-
Constructor Summary
ModifierConstructorDescriptionprotected
ParserException
(@NonNull Class<?> argumentParser, @NonNull CommandContext<?> context, @NonNull Caption errorCaption, @NonNull CaptionVariable... captionVariables) -
Method Summary
Modifier and TypeMethodDescription@NonNull CaptionVariable @NonNull []
Get a copy of the caption variables present in this parser exception.@NonNull Caption
Get the error caption for this parser exceptionfinal @NonNull Class<?>
Get the argument parserfinal @NonNull CommandContext<?>
Get the command contextfinal String
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
Method Details
-
getMessage
- Overrides:
getMessage
in classThrowable
-
errorCaption
Get the error caption for this parser exception- Returns:
- The caption
- Since:
- 1.4.0
-
getArgumentParserClass
Get the argument parser- Returns:
- Argument parser
-
getContext
Get the command context- Returns:
- Command context
-