java.lang.Object
com.github.rvesse.airline.prompts.matchers.MatcherUtils

public class MatcherUtils extends Object
Option matcher utility functions
  • Constructor Details

    • MatcherUtils

      public MatcherUtils()
  • Method Details

    • ambiguousResponse

      public static PromptException ambiguousResponse(String response)
      Provides an error indicating that the response was ambiguous i.e. did not identify a single option
      Parameters:
      response - Response
      Returns:
      Prompt error
    • invalidResponse

      public static PromptException invalidResponse(String response)
      Provides an error indicating that the response was invalid
      Parameters:
      response - Response
      Returns:
      Prompt error