Uses of Class
com.github.rvesse.airline.parser.errors.ParseRestrictionViolatedException
Packages that use ParseRestrictionViolatedException
Package
Description
-
Uses of ParseRestrictionViolatedException in com.github.rvesse.airline.parser.errors
Subclasses of ParseRestrictionViolatedException in com.github.rvesse.airline.parser.errorsModifier and TypeClassDescriptionclass
Exception thrown when the value for an option is not in a specific set of allowed valuesclass
Exception thrown when required arguments are missingclass
Exception that is thrown when a command receives unexpected argumentsclass
Exception that is thrown when no command is specifiedclass
Exception that is thrown when an unrecognized command is suppliedclass
A parser exception that relates to a restriction violated where the violation pertains to some group of optionsclass
Exception thrown when the value for an option is not in a specific set of allowed valuesclass
Exception that is thrown when a required option is missingclass
Exception that is thrown when an option expects one/more values and no values are suppliedclass
Error that indicates that an options value was outside of an acceptable rangeclass
Error that is thrown if too many arguments are provided -
Uses of ParseRestrictionViolatedException in com.github.rvesse.airline.restrictions.common
Methods in com.github.rvesse.airline.restrictions.common that return ParseRestrictionViolatedExceptionModifier and TypeMethodDescriptionprotected abstract <T> ParseRestrictionViolatedException
AbstractStringRestriction.violated
(ParseState<T> state, ArgumentsMetadata arguments, String value) Method that derived classes must implement to provide an exception for the case of an invalid argument value, this will be called ifAbstractStringRestriction.isValid(String)
returnsfalse
protected abstract <T> ParseRestrictionViolatedException
AbstractStringRestriction.violated
(ParseState<T> state, OptionMetadata option, String value) Method that derived classes must implement to provide an exception for the case of an invalid option value, this will be called ifAbstractStringRestriction.isValid(String)
returnsfalse
protected <T> ParseRestrictionViolatedException
EndsWithRestriction.violated
(ParseState<T> state, ArgumentsMetadata arguments, String value) protected <T> ParseRestrictionViolatedException
EndsWithRestriction.violated
(ParseState<T> state, OptionMetadata option, String value) protected <T> ParseRestrictionViolatedException
LengthRestriction.violated
(ParseState<T> state, ArgumentsMetadata arguments, String value) protected <T> ParseRestrictionViolatedException
LengthRestriction.violated
(ParseState<T> state, OptionMetadata option, String value) protected <T> ParseRestrictionViolatedException
NoOptionLikeValuesRestriction.violated
(ParseState<T> state, ArgumentsMetadata arguments, String value) protected <T> ParseRestrictionViolatedException
NoOptionLikeValuesRestriction.violated
(ParseState<T> state, OptionMetadata option, String value) protected <T> ParseRestrictionViolatedException
NotBlankRestriction.violated
(ParseState<T> state, ArgumentsMetadata arguments, String value) protected <T> ParseRestrictionViolatedException
NotBlankRestriction.violated
(ParseState<T> state, OptionMetadata option, String value) protected <T> ParseRestrictionViolatedException
NotEmptyRestriction.violated
(ParseState<T> state, ArgumentsMetadata arguments, String value) protected <T> ParseRestrictionViolatedException
NotEmptyRestriction.violated
(ParseState<T> state, OptionMetadata option, String value) protected <T> ParseRestrictionViolatedException
StartsWithRestriction.violated
(ParseState<T> state, ArgumentsMetadata arguments, String value) protected <T> ParseRestrictionViolatedException
StartsWithRestriction.violated
(ParseState<T> state, OptionMetadata option, String value)