Class MatcherUtils
java.lang.Object
com.github.rvesse.airline.prompts.matchers.MatcherUtils
Option matcher utility functions
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
static final class
static final class
static final class
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PromptException
ambiguousResponse
(String response) Provides an error indicating that the response was ambiguous i.e.static PromptException
invalidResponse
(String response) Provides an error indicating that the response was invalid
-
Constructor Details
-
MatcherUtils
public MatcherUtils()
-
-
Method Details
-
ambiguousResponse
Provides an error indicating that the response was ambiguous i.e. did not identify a single option- Parameters:
response
- Response- Returns:
- Prompt error
-
invalidResponse
Provides an error indicating that the response was invalid- Parameters:
response
- Response- Returns:
- Prompt error
-