Class ExitUtil.HaltException

All Implemented Interfaces:
Serializable, ExitCodeProvider
Enclosing class:
ExitUtil

public static class ExitUtil.HaltException extends RuntimeException implements ExitCodeProvider
An exception raised when a call to ExitUtil.terminate(int) was called and system halts were blocked.
See Also:
  • Field Details

    • status

      public final int status
  • Constructor Details

    • HaltException

      public HaltException(int status, Throwable cause)
    • HaltException

      public HaltException(int status, String msg)
    • HaltException

      public HaltException(int status, String message, Throwable cause)
  • Method Details

    • getExitCode

      public int getExitCode()
      Description copied from interface: ExitCodeProvider
      Method to get the exit code.
      Specified by:
      getExitCode in interface ExitCodeProvider
      Returns:
      the exit code
    • toString

      public String toString()
      String value does not include exception type, just exit code and message.
      Overrides:
      toString in class Throwable
      Returns:
      the exit code and any message