Package org.jline.reader
Class UserInterruptException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.jline.reader.UserInterruptException
- All Implemented Interfaces:
Serializable
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 Summary
-
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
UserInterruptException
-
-
Method Details
-
getPartialLine
- Returns:
- the partially entered line when ctrl-C was pressed
-