Class MatcherUtils
java.lang.Object
com.github.rvesse.airline.prompts.matchers.MatcherUtils
Option matcher utility functions
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic final classstatic final classstatic final class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PromptExceptionambiguousResponse(String response) Provides an error indicating that the response was ambiguous i.e.static PromptExceptioninvalidResponse(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
-