Package org.incendo.cloud.parser.flag
Class CommandFlagParser.FlagParseException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalArgumentException
org.incendo.cloud.exception.parsing.ParserException
org.incendo.cloud.parser.flag.CommandFlagParser.FlagParseException
- All Implemented Interfaces:
Serializable
- Enclosing class:
CommandFlagParser<C>
@API(status=STABLE)
public static final class CommandFlagParser.FlagParseException
extends ParserException
Flag parse exception
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionFlagParseException(@NonNull String input, @NonNull CommandFlagParser.FailureReason failureReason, @NonNull CommandContext<?> context) Construct a new flag parse exception -
Method Summary
Modifier and TypeMethodDescriptionReturns the reason why the flag parsing failed.input()Returns the supplied input.Methods inherited from class org.incendo.cloud.exception.parsing.ParserException
argumentParserClass, captionVariables, context, errorCaption, formatCaption, getMessageMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
FlagParseException
public FlagParseException(@NonNull String input, @NonNull CommandFlagParser.FailureReason failureReason, @NonNull CommandContext<?> context) Construct a new flag parse exception- Parameters:
input- InputfailureReason- The reason of failurecontext- Command context
-
-
Method Details
-
input
Returns the supplied input.- Returns:
- input
-
failureReason
Returns the reason why the flag parsing failed.- Returns:
- the failure reason
-