Class ExitShellException

  • All Implemented Interfaces:
    java.io.Serializable

    public class ExitShellException
    extends java.lang.RuntimeException
    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:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Throwable fillInStackTrace()  
      int getExitCode()  
      • Methods inherited from class java.lang.Throwable

        addSuppressed, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, 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

      • ExitShellException

        public ExitShellException()
      • ExitShellException

        public ExitShellException​(int exitCode)
      • ExitShellException

        public ExitShellException​(java.lang.String message)
      • ExitShellException

        public ExitShellException​(java.lang.String message,
                                  int exitCode)
    • Method Detail

      • getExitCode

        public int getExitCode()
      • fillInStackTrace

        public java.lang.Throwable fillInStackTrace()
        Overrides:
        fillInStackTrace in class java.lang.Throwable