jline.console
Class UserInterruptException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
jline.console.UserInterruptException
- All Implemented Interfaces:
- Serializable
public class UserInterruptException
- extends RuntimeException
This exception is thrown by ConsoleReader.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
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
UserInterruptException
public UserInterruptException(String partialLine)
getPartialLine
public String getPartialLine()
- Returns:
- the partially entered line when ctrl-C was pressed
Copyright © 2013. All Rights Reserved.