APIdia Launch Partner
Top Description Fields Constructors Methods
jdk.internal.org.jline.reader

public Class UserInterruptException

extends RuntimeException
Class Inheritance

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.

Field Summary

Modifier and TypeField and Description
private final String
private static final long

Constructor Summary

AccessConstructor and Description
public
public

Method Summary

Modifier and TypeMethod and Description
public String
getPartialLine()

Returns: the partially entered line when ctrl-C was pressed

Field Detail

partialLineback to summary
private final String partialLine
serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.lang.RuntimeException.serialVersionUID.

Constructor Detail

UserInterruptExceptionback to summary
public UserInterruptException(Throwable cause)
UserInterruptExceptionback to summary
public UserInterruptException(String partialLine)

Method Detail

getPartialLineback to summary
public String getPartialLine()
Returns:String

the partially entered line when ctrl-C was pressed