Class CommandNotFound

All Implemented Interfaces:
Serializable

public class CommandNotFound extends RuntimeException
A result to be handled by the ResultHandler when no command could be mapped to user input
See Also:
  • Constructor Details

    • CommandNotFound

      public CommandNotFound(List<String> words)
  • Method Details

    • getMessage

      public String getMessage()
      Overrides:
      getMessage in class Throwable
    • getWords

      public List<String> getWords()
      Gets a words in this exception.
      Returns:
      a words