Class ExitUtil.ExitException

All Implemented Interfaces:
Serializable, ExitCodeProvider
Direct Known Subclasses:
KDiag.KerberosDiagsFailure, ServiceLaunchException
Enclosing class:
ExitUtil

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

    • status

      public final int status
      The status code.
  • Constructor Details

    • ExitException

      public ExitException(int status, String msg)
    • ExitException

      public ExitException(int status, String message, Throwable cause)
    • ExitException

      public ExitException(int status, 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