Package nz.org.riskscape.engine.cli
Class ReadlineInterruptedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
nz.org.riskscape.engine.RiskscapeException
nz.org.riskscape.engine.cli.ExitException
nz.org.riskscape.engine.cli.ReadlineInterruptedException
- All Implemented Interfaces:
Serializable
Special case ExitException that is thrown from Terminal#readline()
when a user ctrl-c
s when entering text.
By default, this will cause RiskScape to exit, but it can be caught to allow a context menu or something to be shown
instead of just exiting.
- See Also:
-
Field Summary
Fields inherited from class nz.org.riskscape.engine.cli.ExitException
NO_PROBLEM
-
Constructor Summary
-
Method Summary
Methods inherited from class nz.org.riskscape.engine.cli.ExitException
quit, toExitCode
Methods inherited from class nz.org.riskscape.engine.RiskscapeException
getCause, getProblem, hasProblem
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ReadlineInterruptedException
public ReadlineInterruptedException()
-