Package | Description |
---|---|
com.github.rvesse.airline.parser.errors | |
com.github.rvesse.airline.restrictions.common |
Modifier and Type | Class and Description |
---|---|
class |
ParseArgumentsIllegalValueException
Exception thrown when the value for an option is not in a specific set of
allowed values
|
class |
ParseArgumentsMissingException
Exception thrown when required arguments are missing
|
class |
ParseArgumentsUnexpectedException
Exception that is thrown when a command receives unexpected arguments
|
class |
ParseCommandMissingException
Exception that is thrown when no command is specified
|
class |
ParseCommandUnrecognizedException
Exception that is thrown when an unrecognized command is supplied
|
class |
ParseOptionGroupException
A parser exception that relates to a restriction violated where the violation
pertains to some group of options
|
class |
ParseOptionIllegalValueException
Exception thrown when the value for an option is not in a specific set of
allowed values
|
class |
ParseOptionMissingException
Exception that is thrown when a required option is missing
|
class |
ParseOptionMissingValueException
Exception that is thrown when an option expects one/more values and no values
are supplied
|
class |
ParseOptionOutOfRangeException
Error that indicates that an options value was outside of an acceptable range
|
class |
ParseTooManyArgumentsException
Error that is thrown if too many arguments are provided
|
Modifier and Type | Method and Description |
---|---|
protected <T> ParseRestrictionViolatedException |
NotEmptyRestriction.violated(ParseState<T> state,
ArgumentsMetadata arguments,
String value) |
protected <T> ParseRestrictionViolatedException |
NotBlankRestriction.violated(ParseState<T> state,
ArgumentsMetadata arguments,
String value) |
protected <T> ParseRestrictionViolatedException |
LengthRestriction.violated(ParseState<T> state,
ArgumentsMetadata arguments,
String value) |
protected 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 if
AbstractStringRestriction.isValid(String) returns false |
protected <T> ParseRestrictionViolatedException |
NotEmptyRestriction.violated(ParseState<T> state,
OptionMetadata option,
String value) |
protected <T> ParseRestrictionViolatedException |
NotBlankRestriction.violated(ParseState<T> state,
OptionMetadata option,
String value) |
protected <T> ParseRestrictionViolatedException |
LengthRestriction.violated(ParseState<T> state,
OptionMetadata option,
String value) |
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 if
AbstractStringRestriction.isValid(String) returns false |
Copyright © 2012–2017. All rights reserved.