Class UserInterruptException

  • All Implemented Interfaces:
    java.io.Serializable

    public class UserInterruptException
    extends java.lang.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:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getPartialLine()  
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • UserInterruptException

        public UserInterruptException​(java.lang.Throwable cause)
      • UserInterruptException

        public UserInterruptException​(java.lang.String partialLine)
    • Method Detail

      • getPartialLine

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