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:
java.io.Serializable
- Direct Known Subclasses:
BooleanArgument.BooleanParseException
,CharArgument.CharParseException
,EnumArgument.EnumParseException
,FlagArgument.FlagParseException
,NoInputProvidedException
,NumberParseException
,StringArgument.StringParseException
,UUIDArgument.UUIDParseException
public class ParserException extends java.lang.IllegalArgumentException
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ParserException(java.lang.Class<?> argumentParser, @NonNull CommandContext<?> context, @NonNull Caption errorCaption, @NonNull CaptionVariable... captionVariables)
-
Method Summary
Modifier and Type Method Description @NonNull java.lang.Class<?>
getArgumentParserClass()
Get the argument parser@NonNull CommandContext<?>
getContext()
Get the command contextjava.lang.String
getMessage()
-
-
-
Constructor Detail
-
ParserException
protected ParserException(java.lang.Class<?> argumentParser, @NonNull CommandContext<?> context, @NonNull Caption errorCaption, @NonNull CaptionVariable... captionVariables)
-
-
Method Detail
-
getMessage
public final java.lang.String getMessage()
- Overrides:
getMessage
in classjava.lang.Throwable
-
getArgumentParserClass
public final @NonNull java.lang.Class<?> getArgumentParserClass()
Get the argument parser- Returns:
- Argument parser
-
getContext
public final @NonNull CommandContext<?> getContext()
Get the command context- Returns:
- Command context
-
-