jline.console
Class UserInterruptException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by 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

Constructor Summary
UserInterruptException(String partialLine)
           
 
Method Summary
 String getPartialLine()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, 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(String partialLine)
Method Detail

getPartialLine

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


Copyright © 2013. All Rights Reserved.