Class Terminator

  • All Implemented Interfaces:
    Serializable

    public class Terminator
    extends RuntimeException
    An unchecked exception that will result in the termination of the command-line application. Any required error logging should be performed before throwing.
    See Also:
    Serialized Form
    • Field Detail

      • serialVersionUID

        private static final long serialVersionUID
        Serial version UID.
        See Also:
        Constant Field Values
      • exitCode

        private final int exitCode
        Exit code to be delivered to the calling shell.
    • Constructor Detail

      • Terminator

        public Terminator​(ReturnCode code)
        Constructor.
        Parameters:
        code - exit code to be delivered to the calling shell.
    • Method Detail

      • getExitCode

        public int getExitCode()
        Get the exit code to be delivered to the calling shell.
        Returns:
        exit code