Class MatcherUtils


  • public class MatcherUtils
    extends java.lang.Object
    Option matcher utility functions
    • Constructor Detail

      • MatcherUtils

        public MatcherUtils()
    • Method Detail

      • ambiguousResponse

        public static PromptException ambiguousResponse​(java.lang.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​(java.lang.String response)
        Provides an error indicating that the response was invalid
        Parameters:
        response - Response
        Returns:
        Prompt error