Class UserInterruptException

All Implemented Interfaces:
Serializable

public class UserInterruptException extends RuntimeException
This exception is thrown by LineReader.readLine() when user interrupt handling is enabled and the user types the interrupt character (ctrl-C). The partially entered line is available via the getPartialLine() method.
See Also:
  • Constructor Details

    • UserInterruptException

      public UserInterruptException(String partialLine)
  • Method Details

    • getPartialLine

      public String getPartialLine()
      Returns:
      the partially entered line when ctrl-C was pressed