Package org.jline.shell
Class ExitShellException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.jline.shell.ExitShellException
- All Implemented Interfaces:
Serializable
This exception is thrown by commands (e.g. an exit command)
to indicate that the shell should exit.
If a message is provided it will be printed to the terminal when the shell exits.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionExitShellException(int exitCode) ExitShellException(String message) ExitShellException(String message, int exitCode) -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ExitShellException
public ExitShellException() -
ExitShellException
public ExitShellException(int exitCode) -
ExitShellException
-
ExitShellException
-
-
Method Details
-
getExitCode
public int getExitCode() -
fillInStackTrace
- Overrides:
fillInStackTracein classThrowable
-