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:
java.io.Serializable
public class UserInterruptException extends java.lang.RuntimeException
This exception is thrown byLineReader.readLine()
when user interrupt handling is enabled and the user types the interrupt character (ctrl-C). The partially entered line is available via thegetPartialLine()
method.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UserInterruptException(java.lang.String partialLine)
UserInterruptException(java.lang.Throwable cause)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getPartialLine()
-